diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..377ed16 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +jwmappbuilder \ No newline at end of file diff --git a/README.md b/README.md index ddc60d6..f7b560a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # KeizaDesktop - +This repository contains everything related to Keiza WM. +## JAB +- Install V. +- build +`v -prod jwmappbuilder.v` \ No newline at end of file diff --git a/jwmappbuilder.v b/jwmappbuilder.v index 0dbf430..8475ce1 100644 --- a/jwmappbuilder.v +++ b/jwmappbuilder.v @@ -1,14 +1,6 @@ import os -import khalyomede.i18n { Translations } fn main() { - textbundle := Translations{ - default_lang: "en_US", - translations: { - "helptext": { - "en_US": "\nUsage:\n :cmd [-h] [-t] [-i] [-a]\n\nGenerates Applications menu for Joe's Window Manager.\n\nUsage in .jwmrc:\n\n\texec: :cmd \n\nOptions:\n -h, --help\tShow this text.\n -i, --icons\tAlso generate icons.\n -t, --tooltip\tAlso generate tooltips.\n -a, --all\tDo not generate categories: list all applications.\n\nv1.0" - }}} - lang := detectlang() mut args := []bool{len: 3} for mut arg in args { arg = false @@ -19,7 +11,7 @@ fn main() { "-t", "--tooltip" { args[1] = true } "-a", "--all" { args[2] = true } "-h", "--help" { - println(textbundle.get("helptext", { "cmd": os.args[0] })) + println("\nUsage:\n ${os.args[0]} [-h] [-t] [-i] [-a]\n\nGenerates Applications menu for Joe's Window Manager.\n\nUsage in .jwmrc:\n\n\texec: ${os.args[0]} \n\nOptions:\n -h, --help\tShow this text.\n -i, --icons\tAlso generate icons.\n -t, --tooltip\tAlso generate tooltips.\n -a, --all\tDo not generate categories: list all applications.\n\nv1.0") exit(0) } else { if arg == os.args[0] {} else {