- add PL translations

- addon-main.nas - simplify addon detection
This commit is contained in:
Slawek Mikula 2020-07-26 21:52:45 +02:00
parent cd4bc2bdd5
commit 944f021984
2 changed files with 18 additions and 5 deletions

View File

@ -5,9 +5,7 @@
var main = func( addon ) { var main = func( addon ) {
var root = addon.basePath; var root = addon.basePath;
var my_addon_id = "com.slawekmikula.flightgear.VfrNavigator"; var my_addon_id = addon.id;
var my_version = getprop("/addons/by-id/" ~ my_addon_id ~ "/version");
var my_root_path = getprop("/addons/by-id/" ~ my_addon_id ~ "/path");
var my_settings_root_path = "/addons/by-id/" ~ my_addon_id ~ "/addon-devel/"; var my_settings_root_path = "/addons/by-id/" ~ my_addon_id ~ "/addon-devel/";
# persistent save of enable flag # persistent save of enable flag

View File

@ -24,9 +24,24 @@
</short-description> </short-description>
<long-description type="string"> <long-description type="string">
VFR helper dialogs This add-on provides quick access menu to access common views and shortcuts
with modified version of the map view especially for small resolution displays.
</long-description> </long-description>
<localized>
<pl>
<short-description type="string">
Pomoc w nawigacji VFR
</short-description>
<long-description type="string">
To rozszerzenie dostarcza menu szybkiego dostępu do przydatnych widoków
i skrótów dostępu wraz ze zmodyfikowanym widokiem mapy dostosowanym
specyficznie dla wyświetlaczy o niskich rozdzielczościach.
</long-description>
</pl>
</localized>
<license> <license>
<designation type="string"> <designation type="string">
GNU GPL version 2 or later GNU GPL version 2 or later
@ -54,7 +69,7 @@
</download> </download>
<support type="string"> <support type="string">
http://wiki.flightgear.org/addon-vfrnavigator https://github.com/slawekmikula/fg-addon-vfrnavigator/issues
</support> </support>
<code-repository type="string"> <code-repository type="string">