We have moved to a new Sailfish OS Forum. Please start new discussions there.
0

how to localize application name? [answered]

asked 2014-05-03 16:22:14 +0300

ISU gravatar image

updated 2014-07-25 11:46:14 +0300

jiit gravatar image

Is it possible to localize the name of the application according to the language setting?

I believe in the appName.desktop file contains the name of the application but is it possible to localize/translate it?

See e.g. https://harbour.jolla.com/faq -> "How can I name the app in the application launch grid? I don't want that long name with prefix to appear there! ¶ In the .desktop file, there is the "Name=" field. The string defined there is shown in the application launcher as the application name. That name does not have to be unique. So there might be more than one application called "HelloWorld!" in the application launcher grid. The package name of the application (<harbour_app_name>) does not appear in the UI."</harbour_app_name>

and https://together.jolla.com/question/2750/rename-app-alias/

The question has been closed for the following reason "the question is answered, an answer was accepted" by Kontio
close date 2014-05-05 10:49:26.329662

add a comment

1 Answer

Sort by » oldest newest most voted
1

answered 2014-05-03 18:28:53 +0300

Kontio gravatar image

Lipstick follows the 'Desktop Entry Specification', so it can use it's localization methods. See the specifications 'Localized values for keys' chapter.

For examples see, it contains translations to Chinese:

/usr/share/applications/jolla-contacts.desktop
/usr/share/applications/sailfish-office.desktop
link

Comments

Thank you very much for yout fast and accurate answer! I was able to localize my application name in no time! :D

ISU ( 2014-05-04 21:23:43 +0300 )
add a comment

Question tools

Follow
2 followers

Stats

Asked: 2014-05-03 16:22:14 +0300

Seen: 209 times

Last updated: May 03 '14