Commit e647a9

2024-11-13 15:08:45 Hargata Softworks: x
misc/translations.md ..
@@ 7,29 7,54 @@
- Sweetalert prompts(confirm delete dialogs, etc)
- About section
- ## Where to get translations
- Translations can be found at [this repository](https://github.com/hargata/lubelog_translations/)
+ ## How to Download Translations
- 1. To upload a translation file, login as the root user.
+ 1. Login as the root user
2. Navigate to "Settings"
- 3. Click "Upload" under the "Manage Languages" section
- ![](/Misc/Translations/a/image-1726779630684.png)
+ 3. Click on the dropdown next to the Upload button
+ ![](/Misc/Translations/a/image-1731509539436.png)
- 4. Select the language file you wish to upload
- 5. The page should refresh
- 6. Select the language file from the dropdown to set it as your default language.
+ 4. Click on "Get Translations"
+ 5. The Translation Downloader will show up
+ ![](/Misc/Translations/a/image-1731509632839.png)
- ## Creating your own translation
- 1. Download the [latest en_US.json](https://github.com/hargata/lubelog/blob/main/wwwroot/defaults/en_US.json) file from the GitHub Repository for LubeLogger.
- 2. Rename this file, en_US is a reserved name.
- 3. Use a JSON pretty-printer to make it human-readable
- ![](/Misc/Translations/a/image-1726779638633.png)
+ 6. You can download either just one or all translations.
+ 7. Select the language file from the dropdown to set it as your default language.
- 3. The objects to the left of the ":" are the translation keys, DO NOT modify these.
- 4. The objects to the right of the ":" are the translation values(shown in green), these are what you want to translate.
- 5. To test out your translation, simply upload it to your LubeLogger instance and test it out.
+ ## Creating Your Own Translation
- ## Contribute
- Follow the instructions outlined in the [official repository](https://github.com/hargata/lubelog_translations/)
+ 1. Login as the root user
+ 2. Click on the Edit button right next to the language selector
+ ![](/Misc/Translations/a/image-1731510261383.png)
+
+ 3. The translator editor will show up
+ ![](/Misc/Translations/a/image-1731509847256.png)
+
+ 4. Modify the values in the right.
+ ![](/Misc/Translations/a/image-1731509922693.png)
+
+ 5. Click "Save Translation"
+ ![](/Misc/Translations/a/image-1731509990437.png)
+
+ 6. You will be prompted to name your translation, note that "en_US" is reserved
+ ![](/Misc/Translations/a/image-1731510061033.png)
+
+ 7. Select your custom translation from the dropdown
+ ![](/Misc/Translations/a/image-1731510176858.png)
+
+ ![](/Misc/Translations/a/image-1731510239333.png)
+
+ ## Exporting Your Translation
+
+ 1. Click on the Edit button again to bring up the translation editor
+ ![](/Misc/Translations/a/image-1731510396898.png)
+
+ 2. Click on the dropdown next to "Save Translation"
+ ![](/Misc/Translations/a/image-1731510444446.png)
+
+ 3. Click "Export Translation"
+ 4. You should be redirected to a pretty-printed and ordered json file
+ 5. Right click > Save-As to save the translation file
+ 6. Follow the instructions outlined in the [official repository](https://github.com/hargata/lubelog_translations/)
Translation efforts are coordinated via [this thread](https://github.com/hargata/lubelog/discussions/240)
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9