maclocalized 2020.12.3
Installation
$ [sudo] pip install mac-localized
How it works
Release Notes.localized/
.localized/
en.strings
de.strings
ja.strings
.strings:
"Release Notes" = "Localized name";
Examples
>>> import mac_localized
>>> mac_localized.mkdir("folder",ru="ru translation",de="de translation")
'folder.localized'
>>> mac_localized.load("folder")
{'ru':'ru translation','de':'de translation'}
>>> mac_localized.update("folder",ru="new ru translation",de="new de translation")
>>> mac_localized.get("folder","ru")
'new ru translation'
>>> mac_localized.rm("folder",["ru"])
>>> mac_localized.rm("folder") # rm all localizations
Links
Localizing the Name of a Directory
Display Names
readme42.com
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.