periodic Element Table - call for translators
|
01-15-2017, 05:47 PM
Post: #1
|
|||
|
|||
periodic Element Table - call for translators
Hello,
I made a program to display Periodic Element Table. See video demonstration : keyboard and touch screen capable. video keys : arrow keys or touch screen to move double-click or enter key to display element details. +/- to zoom ESC to leave This prog is available now in 2 languages, English and French. If you want to contribute by translating to your language, please let me know, it's quite easy, I will give details to help you. You can download ElementsTbl here : ElementsTbl.hpprgm (Size: 50.72 KB / Downloads: 21) Let me know you comments. Leave a comment if you can help me on translation. Thank you. primer primer |
|||
01-15-2017, 10:27 PM
Post: #2
|
|||
|
|||
RE: periodic Element Table - call for translators
There is at least a French and English periodic table here: http://www.hpmuseum.org/forum/thread-1115.html
Graph 3D | QPI | SolveSys |
|||
01-16-2017, 12:09 AM
(This post was last modified: 01-16-2017 12:21 AM by primer.)
Post: #3
|
|||
|
|||
RE: periodic Element Table - call for translators
Hi Han,
(01-15-2017 10:27 PM)Han Wrote: There is at least a French and English periodic table here: http://www.hpmuseum.org/forum/thread-1115.htmlyes I know... But I built this one as being easily translatable. There are no if/then/else structure all along the program to handle only 2 languages, that would make it hardly maintable. The program I provide is easily translatable by design, and will follow user system language. Of course it require work to fill all 118 elements and few User Interface strings, but it's grouped at grogram start. For example, at line 49, you have each UI strings associated with a uniq ID, for example : Code: liq:liquid,liquide Code: liq:liquid,liquide,german_word_for_liquid Code: local lang:={1,1,2,3,1,1,1,1}; // language mapping 1:En 2:Fr 3:Ger I push my efforts mostly on maintenability (translation, scroll system from this template....) My wish (if I forgot comments like "yet another one"...) is to motivate people to translate in their language. Then we could provide an element table in any user language, that would increase user experiance. Hence my post title : "call for translator". There are also, few other small reasons why I made another program. Technically, I feel the scrolling feature from other elements apps is not perfect (a little laggy). Also, I wanted to have electron layer information (K,L,M...). State of matter is dynamical computed (that allow interresting things to be done)... note : This is still beta version, loading time will be improved by converting translation string into its final format (the current format ease the transation addition, but it's converted at loading time, which will be avoided in the future) primer |
|||
01-16-2017, 07:01 AM
(This post was last modified: 01-17-2017 10:20 PM by StephenG1CMZ.)
Post: #4
|
|||
|
|||
RE: periodic Element Table - call for translators
If you will also consider supporting languages that the HP Prime doesn't:
My Periodic Table program includes element names in Polish (though not much else). Whilst writing that program, I discovered a website that has the element names in all languages (My own translations are mainly a mix of that site and Google translate). These may be useful references in checking the translations: http://elements.vanderkrogt.net/multidict.php (many languages) https://sciencenotes.org/element-names-d...languages/ (just a few languages) Also, in your example code you have French as language 2... You might consider changing that to 3 to match the HP Prime numbering. Update: Great Video. Looks like a good and informative user interface. Stephen Lewkowicz (G1CMZ) https://my.numworks.com/python/steveg1cmz |
|||
01-17-2017, 12:33 AM
Post: #5
|
|||
|
|||
RE: periodic Element Table - call for translators
Hi, nice program, but I have 2 suggestions:
1) You can use STRINGFROMID to detect the current language 2) Having independent language lists might be much less prone to errors than the big list you are using now. Also, for example you can use AFiles("filename.ext") to save a whole language file list, instead of mixing all the languages and have them always loaded in ram: Code: Save: My website: ried.cl |
|||
01-18-2017, 03:55 PM
Post: #6
|
|||
|
|||
RE: periodic Element Table - call for translators
(01-17-2017 12:33 AM)eried Wrote: Hi, nice program, but I have 2 suggestions: You can also just use the Language variable. (You can even set the language using Language:=<number>.) Quote:2) Having independent language lists might be much less prone to errors than the big list you are using now. Great ideas. You can alternately just use file names like lang1.txt, lang2.txt, etc. This way when a user creates an app variable, you can restrict yourself to just the files named lang<number>.txt Code: filename:="lang" + STRING(Language,1,0) + ".txt"; There is a limitation to using the built-in variable Language, though (namely you are limited to what is supported in the Prime). Your program, however, can support whatever language you wish. Graph 3D | QPI | SolveSys |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)