Commit 6a53099
"AM" 9.8 - add support to locale and languages (#1582)
* Localization (#1459)
* translation script
* allow translation
* am.pot RAW still need cleanup
* cs.po manually cleaned
* Add empty it translation
* am.pot
* empty translation file
* cs mo
* it mo (empty)
* translate module
* localization
* translation module
* translation in help message
* rm temp.po
* gumG as green
* Add colors
* am.po am.pot
* Reset colors in APP-MANAGER
* cs.po cs.mo
* cs.po~ (backup)
* revert chages in installers
git checkout dev -- INSTALL AM-INSTALLER
* fix copying .mo
* am.po am.pot
* cs
* it
* translations in $HOME
* move .po file
* update
* Show only date not more..
* Add translations action
* Move .mo files under po/
* Delete not needed trans.sh
* update
* translation copy timeout (for CI)
* no choosen branch to run on
* CI: Clone translations repo
* Add gettext dependency
* Git add translation files
* fix git add
* Copy files from /opt/am/
* Rename po dir to translations
* Remove usr dir
* git status
* Trigger if module or APP-MANAGER change
* Upload mo files
* ci
* Release translations
* fix release
* Github-Release-Action
* Update translations.yml
* Use github.workflow for trigger
* comment out
* Update translations.yml
* Update translations.yml
* s
* mention release
* run-name
* Update translations.yml
* Update translations.yml
* remarkablemark/gitploy-action
* to translations branch
* Update translations.yml
* Include upstream changes
* 🦉 translations
* git rm
* 🦉 translations
* Update translations.yml
* Delete translations
* 🦉 translations
* Remove *.po~ in module
* 🦉 translations
* 🦉 translations
---------
Co-authored-by: web-flow <noreply@github.com>
* 🦉 translations
* Fix colors (#1580)
* 🦉 translations
* Fix colors
---------
Co-authored-by: web-flow <noreply@github.com>
* 🦉 translations
* Update APP-MANAGER
* Update APP-MANAGER
* Temporarily disable translations function
* Use dynamic "fit" if command "tput" is available
* Move some messages to one line
* Add help.am
* Remove the help message, now moved into a dedicated module
- sort options of modules
- handle NO_COLOR in modules
* Fix color / no-color switch in "-h"
* Sort internal options by name
* Allow no-colors in "-u"
* Detect available locale files
* Update APP-MANAGER
* Add help module to export
* Use owner repo
* 🦉 translations
* check
* Add files via upload
* 🦉 translations
* Update translate.am - refactoring, improve readability
* Put the help message back to APP-MANAGER (#1585)
* Restore the help message to the main CLI
* Delete modules/help.am
* Update translate.am - remove modules/help.am reference
* Need a $
* Check if LANG value is not "C"
* Include "translate" related options in shell completion
* Delete results directory
* Set the language in a "locale" file (which I will work on in the future)
* Set "en" if no locale is available for you
* Use "monorepo" to fix wrong locale file download
* Add function to sincronize locale file, if available
* Add option "translate", can be used with or without arguments
* Fix command "am translate en"
* Update APP-MANAGER
* Delete translations directory, moved to https://github.com/AM-community
* Delete translations.yml, moved to https://github.com/AM-community
* Update APP-MANAGER
* Set and use alternative languages
* Add option "--translate" or "translate"
* Suggest using "am translate" to set alternative languages
* Update README.md
* Update README.md
* Update APP-MANAGER - "AM" 9.8
* Check and set locale at first start
* Suggest the valid locale codes (supports more than 2 letters)
* Move _fit function before every function / improve "tput" output
* Simplify the way to set locale
* Delete modules/translate.am
* Notify the user that the language has changed...
... and suggest how to switch back to English
* Undo previous commit (issues in "-s")
* Pertially undo 19c616d
* Add strings-extractor.sh, update source.po and source.pot
* Update strings-extractor.sh
* Update translations/source* files
* Add files via upload
* Update strings-extractor.sh
* Check and set developer mode at very start
* Update source files
* Update translations source
* Update README.md
* Update it.po
* Update it.po
* Update it.po
* Update it.po
* Update source files
* Update strings-extractor.sh
* Update it.po
* Add files via upload
* Update it.po
* Add files via upload
* Update README.md
* Update README.md
* Create README.md
* Update Serbian translation (#1603)
* Update Serbian translation
* Update am.mo
* Add files via upload
* Add files via upload
* Add files via upload
* Add files via upload
* Update README.md
* Update Serbian translate, help message fully translated (#1604)
* Update Italian language - fix help message
* Fix typo
* Delete translations/locale/it/LC_MESSAGES directory
* Update italian
* Delete translations/usr/locale/it/LC_MESSAGES directory
* Update italian
* Add files via upload
* Add files via upload
* Update source files
* Update template.am
* Update and rename strings-extractor.sh to LANGUAGE-MANAGER
* Create language-updater.yml
* Update language-updater.yml
* Update language-updater.yml
* Update language-updater.yml
* Update language-updater.yml
* Update language-updater.yml
* Update language-updater.yml
* Sync locale files
* Update language-updater.yml
* Update language-updater.yml
* Sync locale files
* Fix wrong URLs and English "help" message in 5 locales
* Sync locale files
* Update README.md
* Update README.md
* Serbian translation, update typo in help (#1605)
* Sync locale files
* Move .po files to a dedicated directory (#1607)
* Rename translations/cs.po to translations/po-files/cs.po
* Rename translations/de.po to translations/po-files/de.po
* Rename translations/es.po to translations/po-files/es.po
* Rename translations/it.po to translations/po-files/it.po
* Rename translations/ru.po to translations/po-files/ru.po
* Rename translations/sr.po to translations/po-files/sr.po
* Update README.md
* Update LANGUAGE-MANAGER
* Update language-updater.yml
* Fix missing "\n" in de, es and ru
* Sync locale files
* Remove AI generated translations (#1608)
* Delete translations/po-files/de.po
* Delete translations/po-files/es.po
* Delete translations/po-files/ru.po
* Delete translations/usr/share/locale/de/LC_MESSAGES directory
* Delete translations/usr/share/locale/es/LC_MESSAGES directory
* Delete translations/usr/share/locale/ru/LC_MESSAGES directory
* Fix Serbian language typo & update language description (#1609)
* Sync locale files
* Remove wrong translated "help" message from 4 translations
* Sync locale files
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Update README.md
* Improve language detection logic (#1610)
* Improve language detection logic
All symbols after `_` are variants of one language, so I just remove all those symbols.
As a result, detection is `sr` instead of `sr_RS`
* Also remove strings after @ symbol
* Remove `cut -c -2` when getting `iso_code` from `locale` file
* Notify about the availability of a translation package in "-s" an "-u"
* Sync locale files
* Update LANGUAGE-MANAGER
* Update language-updater.yml
* Update LANGUAGE-MANAGER
* Update language-updater.yml
* Sync locale files
* Update LANGUAGE-MANAGER
* Update LANGUAGE-MANAGER
* Update language-updater.yml
* Update language-updater.yml
* Remove only am.mo and appman.mo, not all .mo files
* Sync locale files
* Update README.md
---------
Co-authored-by: zenobit <zenobit@disroot.org>
Co-authored-by: web-flow <noreply@github.com>
Co-authored-by: fiftydinar <65243233+fiftydinar@users.noreply.github.com>1 parent 070deba commit 6a53099
File tree
24 files changed
+18456
-414
lines changed- .github/workflows
- modules
- translations
- po-files
24 files changed
+18456
-414
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
| |||
307 | 309 | | |
308 | 310 | | |
309 | 311 | | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
310 | 335 | | |
311 | 336 | | |
312 | 337 | | |
| |||
640 | 665 | | |
641 | 666 | | |
642 | 667 | | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
643 | 680 | | |
644 | 681 | | |
645 | 682 | | |
| |||
952 | 989 | | |
953 | 990 | | |
954 | 991 | | |
955 | | - | |
| 992 | + | |
956 | 993 | | |
957 | 994 | | |
958 | 995 | | |
| |||
0 commit comments