Contributing to the Localization of doogiePIM
-
BiteSpire
- State changed from new to open
Thank you for the help and support on translation, it is truly appreciated.
Any duplicates found can be deleted.
Kindest regards,
Chris -
Brian Cao
Hi Author,
I would like to contribute to doogiePIM via Community but my registered account still not yet approved.
I will share something related to Translation here!
I have dummy PO for Russian, Chinese, French. If anybody would like to use, can use https://poedit.net/ or https://virtaal.translatehouse.org/ to do the translation. These tools are great!
Then use my little Python code to convert to doogiePIM format... This only create the content, user must modify the header to match their language!
import polib def main(): #dummi header #you must modify the header to match your language mylist = [ ';------------------------------------------------------------------------------', '; This file is encoded in UTF-8', ';', '; doogiePIM Language File', '; Further information can be found at https://bitespire.com', ';', ';------------------------------------------------------------------------------', ';', '; IMPORTANT: Do not edit this file whilst doogiePIM is using it.', '; ', ';------------------------------------------------------------------------------', '; Use this file as a base for translations into other languages.', '; Copy this file to the required LanguageCode.', '; Feel free to edit anything AFTER the equals sign (=).', ';------------------------------------------------------------------------------', '', '[LanguageInfo]', '', '; Valid options for LanguageCode:', '; am, ar, bg, bn, ca, cs, da, de, el, en-GB, en-US, es, es-419, et, fa, fi, fil, fr, gu, he, hi, hr, hu, id, it, ja, kn, ko, lt, lv, ml, mr, ms, nb, nl, pl, pt-BR, pt-PT, ro, ru, sk, sl, sr, sv, sw, ta, te, th, tr, uk, vi, zh-CN, zh-TW', 'LanguageCode=en-GB', '', 'Name=Vietnamese', 'LocalName=Tiếng Việt', '', '; This is the minimum desired release version that these phrases support', 'AppVersion=2.1.0.5', '', '; If you\'ve translated this file then credit yourself.', 'Author=BizChain Labs', 'RevisionDate=25 December 2020', 'RevisionVersion=1.0.0.0', '', 'Alphabet=AĂÂBCDĐEÊGHIKLMNOÔƠPQRSTUƯVXY', 'AlphabetLower=aăâbcdđeêghiklmnoôơpqrstuưvxy', '', ';------------------------------------------------------------------------------', '[Phrases]', ';------------------------------------------------------------------------------' ] #source file - full path myfile = r"C:\Users\hongy\OneDrive\Documents\Working\doogiePIM\translation\doogiePIMBaseLanguage-vi-VN.po" #destination file - full path filepath_out = r"C:\Users\hongy\OneDrive\Documents\Working\doogiePIM\translation\doogiePIMBaseLanguage-vi-VN.lang" po = polib.pofile(myfile) for entry in po: if (entry.msgstr == ''): mylist.append("%s=%s" % (entry.msgctxt, entry.msgid)) else: mylist.append("%s=%s" % (entry.msgctxt, entry.msgstr)) with open(filepath_out, 'w', encoding="utf-8") as filehandle: for listitem in mylist: filehandle.write('%s\n' % listitem) print("Done!") main()
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
