View Single Post
Old 02-07-2025, 06:53 AM   #58
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,476
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by dunhill View Post
Here is the plugin with translation support
Now with Spanish language

There are strings like this that I haven't figured out how to mark for translation.
timed_print(f'[{pi_name}]: starting backup process')
Thanks for this.

I had to change several things. For example:
  • The date pattern string cannot be translated because the date letters are fixed in code (format_date()). I changed the default file name to remove 'at' to avoid using words in the date pattern string. The user can do whatever they want and will see the result and thus see where it breaks.
  • The name of the json settings file should not be translated.
  • I added the translation of 'Current Value' to the tooltip generator.
  • I made the plugin description translatable.

The changed version is attached. I'll release it once you tell me you are finished with any changes.

EDIT: If you ran the version in @Dunhill's post then because of the change to the JSON configuration file name the history records for the plugin will be wrong.
Attached Files
File Type: zip Backup Configuration Folder_1_1_1.zip (22.3 KB, 74 views)

Last edited by chaley; 02-07-2025 at 07:00 AM.
chaley is offline   Reply With Quote