Contributing to the Localization of doogiePIM
Reported by Brian Cao | December 7th, 2020 @ 05:58 AM | in 2.3.0.0
Hi Author,
I'm doing a private project for doogiePIM. That is making it localization via translating it into my language.
I could find that, translating more than 6000 lines is painful if doing that manually.
I converted your doogiePIMBaseLanguage.lang to .PO, then we can do the translation easier using https://poedit.net/ or https://virtaal.translatehouse.org/. (file attached for your usage)!
I would a have a small script to convert the .PO back to your file format soon (.lang). Then, nothing to worry about. I will share later.
Then the translation would be less painful.
When converting to .PO, I get notice that, your file has 7 of duplications. All as following:
Cannotreplacevariableorfunctio=
Research%sinthedatabase_______=
AdjustDueDateto|______________=
AdjustDueDateto|______________=
AdjustStartDateto|____________=
Overdue|0_____________________=
Totalitems|0__________________=
Thank you!
Rgds,
Brian
Comments and changes to this ticket
-
BiteSpire December 7th, 2020 @ 07:08 AM
- 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 December 7th, 2020 @ 12:42 PM
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
|
| doogiePIM Latest Download https://bitespire.com/download.php
|
|
| Ensure you change the Milestone Version to match the version you are reporting.
|
| Please be as detailed as you can about the issue.
| Attach screenshots to demonstrate the problem. A picture says a thousand words.
|
|