You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"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 <[email protected]>
* 🦉 translations
* Fix colors (#1580)
* 🦉 translations
* Fix colors
---------
Co-authored-by: web-flow <[email protected]>
* 🦉 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 <[email protected]>
Co-authored-by: web-flow <[email protected]>
Co-authored-by: fiftydinar <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+38-1Lines changed: 38 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,8 @@ You can use the command `am -a {PROGRAM}` to view the description and get the so
58
58
59
59
-[Do you own a repository for AppImages external to this database? Follow these instructions!](#do-you-own-a-repository-for-appimages-external-to-this-database-follow-these-instructions)
60
60
61
+
[Translate "AM" in your local language](#translate-am-in-your-local-language)
62
+
61
63
[How to update all programs, for real!](#how-to-update-all-programs-for-real)
62
64
-[How to update all installed apps](#how-to-update-all-installed-apps)
63
65
-[How to update everything using Topgrade](#how-to-update-everything-using-topgrade)
@@ -307,6 +309,29 @@ For more details on how the `-e` or `extra` option works, see [here](https://git
Since version 9.8 it is possible to add and use alternative languages via the `translate` option, use:
315
+
```
316
+
am translate
317
+
```
318
+
or if using AppMan
319
+
```
320
+
appman translate
321
+
```
322
+
The command accepts reliable language codes (for example "it" for Italian, or "sr" for Serbian). In case the desired language is not in the database, it will default to English (code "en").
323
+
324
+
In the example, "AM" in Italian, Czech and Serbian
Most of the apps managed by "AM" have a script called `AM-updater`. It tells how updates are checked when running the `am -u` command.
@@ -640,6 +665,18 @@ Updates this script to the latest version hosted.
640
665
641
666
Generate a custom installation script. To test the scripts, use the "`am -i '/path/to/script'`" command or enter the directory of the script and run the "`am -i ./script`" command, even using dedicated flags, if necessary (see "`-i`").
0 commit comments