Starting with version 1.3 Marble has improved support for parsing coordinates from text strings of all kind of (non-western) languages. This is done by using 7 entries in the translation catalog for marble-qt which all are from the context "GeoDataCoordinates", have a "*" as text and as disambiguation a description what they are about (+ a link here).
You can use the entries to extend the items which are used for parsing strings. The default items are based on the English language, so coordinates in English can be always parsed, whatever you add here. If you do not need to add anything, just leave the entry without a translation or translate with a "*" again.
If there are multiple items for a entry, you list them by separating the items with the "|" char (U+007C, VERTICAL LINE) without any spaces added, e.g. "A|B|C".
There are 4 entries for the directions:
Here give the shortform(s) of each direction which is used in coordinates, which is e.g. "N" for North in English. If there are variants with and without a dot, list both, e.g. "Pn.|Pn" for North in Polish. If there is a space, make sure it is just one space, e.g. with "с. ш." for North in Bulgarian.
If you add localized direction terms, you need to do it for all four directions. The number of terms per direction can be different, e.g. "O" for West and "E|L" for East in Portuguese.
There are 3 entries for the symbols:
Per default the parser accepts the official (in latin1-based languages) symbols °, ′ and ″, but also quite a range of terms which only look similar to them. Cmp. this listing in the code:
// x00B0: ° DEGREE SIGN // x00BA: º MASCULINE ORDINAL INDICATOR (found used as degree sign) // x2032: ′ PRIME (minutes) // x00B4: ´ ACUTE ACCENT (found as minutes sign) // x02CA: ˊ MODIFIER LETTER ACUTE ACCENT // x2019: ’ RIGHT SINGLE QUOTATION MARK // x2033: ″ DOUBLE PRIME (seconds) // x201D: ” RIGHT DOUBLE QUOTATION MARK
Additionally all single ticks listed here are accepted as Seconds symbol if doubled, e.g. ´´. So hopefully no need to have you list the accepted workaround due to the keyboard layout in your language yourself.
For all non-latin1 based languages it might be needed to set all additional symbol terms here, like "도" as Degree symbol, "분" as Minutes symbol and "秒" as Seconds symbol in Korean.
There is no need to set the additional symbol terms for all symbol types if you set some, just setting for one or two is alright, e.g. just adding one term for the Degree symbol and leaving the Minutes and Seconds terms empty.
Take a look at the examples used for testing, in the method "TestGeoDataCoordinates::testFromLocaleString_data()" in the file https://projects.kde.org/projects/kde/kdeedu/marble/repository/revisions/master/entry/tests/unittest_geodatacoordinates.cpp
Or see the the blog post and the examples given here: http://frinring.wordpress.com/2011/11/08/help-needed-how-to-write-geographic-coordinates-in-your-language/#comments
Be aware that some missed what was asked for with the directions: not the full, normal term was asked, but the short form like it is used in a coordinate, cmp. the section about Direction terms above.
If you need help or have other suggestions, please contact email@example.com or the Marble mailinglist.