fix i18n translation
This commit is contained in:
parent
097a8accca
commit
1f576aecf4
@ -23,34 +23,54 @@ define Build/Configure
|
|||||||
$(INSTALL_DIR) $(PKG_BUILD_DIR)/gluon-config-mode-geo-location{,-with-map}/{luasrc/lib/gluon/config-mode/wizard/,i18n/}
|
$(INSTALL_DIR) $(PKG_BUILD_DIR)/gluon-config-mode-geo-location{,-with-map}/{luasrc/lib/gluon/config-mode/wizard/,i18n/}
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define GluonBuildI18N
|
||||||
|
mkdir -p $(1)
|
||||||
|
for lang in $$(GLUON_ENABLED_LANGS); do \
|
||||||
|
if [ -e $(1)/$$$$lang.po ]; then \
|
||||||
|
rm -f $(1)/$$$$lang.lmo; \
|
||||||
|
po2lmo $(1)/$$$$lang.po $(1)/$$$$lang.lmo; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
endef
|
||||||
|
|
||||||
|
define GluonInstallI18N
|
||||||
|
$(INSTALL_DIR) $(1)/lib/gluon/web/i18n
|
||||||
|
for lang in $$(GLUON_ENABLED_LANGS); do \
|
||||||
|
if [ -e $(2)/i18n/$$$$lang.lmo ]; then \
|
||||||
|
$(INSTALL_DATA) $(2)/i18n/$$$$lang.lmo $(1)/lib/gluon/web/i18n/$(PKG_NAME).$$$$lang.lmo; \
|
||||||
|
fi; \
|
||||||
|
done
|
||||||
|
endef
|
||||||
|
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
$(CC) -E -x c -P $(PKG_BUILD_DIR)/0400-geo-location.lua.in -o $(PKG_BUILD_DIR)/gluon-config-mode-geo-location/luasrc/lib/gluon/config-mode/wizard/0400-geo-location.lua
|
$(CC) -E -x c -P $(PKG_BUILD_DIR)/0400-geo-location.lua.in -o $(PKG_BUILD_DIR)/gluon-config-mode-geo-location/luasrc/lib/gluon/config-mode/wizard/0400-geo-location.lua
|
||||||
$(CC) -E -x c -P $(PKG_BUILD_DIR)/gluon-config-mode-geo-location.pot.in -o $(PKG_BUILD_DIR)/gluon-config-mode-geo-location/i18n/gluon-config-mode-geo-location.pot
|
$(CC) -E -x c -P $(PKG_BUILD_DIR)/gluon-config-mode-geo-location.pot.in -o $(PKG_BUILD_DIR)/gluon-config-mode-geo-location/i18n/gluon-config-mode-geo-location.pot
|
||||||
$(CC) -E -x c -P $(PKG_BUILD_DIR)/check_site.lua.in -o $(PKG_BUILD_DIR)/gluon-config-mode-geo-location/check_site.lua
|
$(CC) -E -x c -P $(PKG_BUILD_DIR)/check_site.lua.in -o $(PKG_BUILD_DIR)/gluon-config-mode-geo-location/check_site.lua
|
||||||
$(CC) -E -x c -P $(PKG_BUILD_DIR)/de.po.in -o $(PKG_BUILD_DIR)/gluon-config-mode-geo-location/i18n/de.po
|
$(CC) -E -x c -P $(PKG_BUILD_DIR)/de.po.in -o $(PKG_BUILD_DIR)/gluon-config-mode-geo-location/i18n/de.po
|
||||||
$(CC) -E -x c -P $(PKG_BUILD_DIR)/fr.po.in -o $(PKG_BUILD_DIR)/gluon-config-mode-geo-location/i18n/fr.po
|
$(CC) -E -x c -P $(PKG_BUILD_DIR)/fr.po.in -o $(PKG_BUILD_DIR)/gluon-config-mode-geo-location/i18n/fr.po
|
||||||
$(call GluonBuildI18N,gluon-config-mode-geo-location,$(PKG_BUILD_DIR)/gluon-config-mode-geo-location/i18n)
|
|
||||||
$(call GluonSrcDiet,$(PKG_BUILD_DIR)/gluon-config-mode-geo-location/luasrc,$(PKG_BUILD_DIR)/gluon-config-mode-geo-location/luadest/)
|
$(call GluonSrcDiet,$(PKG_BUILD_DIR)/gluon-config-mode-geo-location/luasrc,$(PKG_BUILD_DIR)/gluon-config-mode-geo-location/luadest/)
|
||||||
|
$(call GluonBuildI18N,$(PKG_BUILD_DIR)/gluon-config-mode-geo-location/i18n)
|
||||||
|
|
||||||
$(CC) -DWITHMAP -E -x c -P $(PKG_BUILD_DIR)/0400-geo-location.lua.in -o $(PKG_BUILD_DIR)/gluon-config-mode-geo-location-with-map/luasrc/lib/gluon/config-mode/wizard/0400-geo-location.lua
|
$(CC) -DWITHMAP -E -x c -P $(PKG_BUILD_DIR)/0400-geo-location.lua.in -o $(PKG_BUILD_DIR)/gluon-config-mode-geo-location-with-map/luasrc/lib/gluon/config-mode/wizard/0400-geo-location.lua
|
||||||
$(CC) -DWITHMAP -E -x c -P $(PKG_BUILD_DIR)/gluon-config-mode-geo-location.pot.in -o $(PKG_BUILD_DIR)/gluon-config-mode-geo-location-with-map/i18n/gluon-config-mode-geo-location-with-map.pot
|
$(CC) -DWITHMAP -E -x c -P $(PKG_BUILD_DIR)/gluon-config-mode-geo-location.pot.in -o $(PKG_BUILD_DIR)/gluon-config-mode-geo-location-with-map/i18n/gluon-config-mode-geo-location-with-map.pot
|
||||||
$(CC) -DWITHMAP -E -x c -P $(PKG_BUILD_DIR)/check_site.lua.in -o $(PKG_BUILD_DIR)/gluon-config-mode-geo-location-with-map/check_site.lua
|
$(CC) -DWITHMAP -E -x c -P $(PKG_BUILD_DIR)/check_site.lua.in -o $(PKG_BUILD_DIR)/gluon-config-mode-geo-location-with-map/check_site.lua
|
||||||
$(CC) -DWITHMAP -E -x c -P $(PKG_BUILD_DIR)/de.po.in -o $(PKG_BUILD_DIR)/gluon-config-mode-geo-location-with-map/i18n/de.po
|
$(CC) -DWITHMAP -E -x c -P $(PKG_BUILD_DIR)/de.po.in -o $(PKG_BUILD_DIR)/gluon-config-mode-geo-location-with-map/i18n/de.po
|
||||||
$(CC) -DWITHMAP -E -x c -P $(PKG_BUILD_DIR)/fr.po.in -o $(PKG_BUILD_DIR)/gluon-config-mode-geo-location-with-map/i18n/fr.po
|
$(CC) -DWITHMAP -E -x c -P $(PKG_BUILD_DIR)/fr.po.in -o $(PKG_BUILD_DIR)/gluon-config-mode-geo-location-with-map/i18n/fr.po
|
||||||
$(call GluonBuildI18N,gluon-config-mode-geo-location-with-map,$(PKG_BUILD_DIR)/gluon-config-mode-geo-location-with-map/i18n)
|
|
||||||
$(call GluonSrcDiet,$(PKG_BUILD_DIR)/gluon-config-mode-geo-location-with-map/luasrc,$(PKG_BUILD_DIR)/gluon-config-mode-geo-location-with-map/luadest/)
|
$(call GluonSrcDiet,$(PKG_BUILD_DIR)/gluon-config-mode-geo-location-with-map/luasrc,$(PKG_BUILD_DIR)/gluon-config-mode-geo-location-with-map/luadest/)
|
||||||
|
$(call GluonBuildI18N,$(PKG_BUILD_DIR)/gluon-config-mode-geo-location-with-map/i18n)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/gluon-config-mode-geo-location/install
|
define Package/gluon-config-mode-geo-location/install
|
||||||
$(CP) $(PKG_BUILD_DIR)/gluon-config-mode-geo-location/luadest/* $(1)/
|
$(CP) $(PKG_BUILD_DIR)/gluon-config-mode-geo-location/luadest/* $(1)/
|
||||||
$(call GluonInstallI18N,gluon-config-mode-geo-location,$(1))
|
$(call GluonInstallI18N,$(1),$(PKG_BUILD_DIR)/gluon-config-mode-geo-location)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/gluon-config-mode-geo-location-with-map/install
|
define Package/gluon-config-mode-geo-location-with-map/install
|
||||||
$(CP) $(PKG_BUILD_DIR)/gluon-config-mode-geo-location-with-map/luadest/* $(1)/
|
$(CP) $(PKG_BUILD_DIR)/gluon-config-mode-geo-location-with-map/luadest/* $(1)/
|
||||||
$(INSTALL_DIR) $(1)/lib/gluon/config-mode/www/static/
|
$(INSTALL_DIR) $(1)/lib/gluon/config-mode/www/static/
|
||||||
$(LN) /lib/gluon/web/www/static/osm.js $(1)/lib/gluon/config-mode/www/static/osm.js
|
$(LN) /lib/gluon/web/www/static/osm.js $(1)/lib/gluon/config-mode/www/static/osm.js
|
||||||
$(call GluonInstallI18N,gluon-config-mode-geo-location-with-map,$(1))
|
$(call GluonInstallI18N,$(1),$(PKG_BUILD_DIR)/gluon-config-mode-geo-location-with-map)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/gluon-config-mode-geo-location/postinst
|
define Package/gluon-config-mode-geo-location/postinst
|
||||||
|
@ -13,7 +13,7 @@ msgstr ""
|
|||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||||
|
\n
|
||||||
msgid ""
|
msgid ""
|
||||||
"If you want the location of your node to be displayed on the map, you may "
|
"If you want the location of your node to be displayed on the map, you may "
|
||||||
"enter its coordinates here. "
|
"enter its coordinates here. "
|
||||||
@ -30,24 +30,24 @@ msgstr ""
|
|||||||
"hast du die Möglichkeit die Position des Routers auf der Karte auszuwählen."
|
"hast du die Möglichkeit die Position des Routers auf der Karte auszuwählen."
|
||||||
#endif
|
#endif
|
||||||
"Bitte berücksichtige, dass das Setzen einer Position die Netzwerkqualität verbessern kann."
|
"Bitte berücksichtige, dass das Setzen einer Position die Netzwerkqualität verbessern kann."
|
||||||
|
\n
|
||||||
msgid "Geo-Location"
|
msgid "Geo-Location"
|
||||||
msgstr "Geo-Position"
|
msgstr "Geo-Position"
|
||||||
|
\n
|
||||||
msgid "Static location"
|
msgid "Static location"
|
||||||
msgstr "Manuelle Position"
|
msgstr "Manuelle Position"
|
||||||
|
\n
|
||||||
msgid "Disabled"
|
msgid "Disabled"
|
||||||
msgstr "Deaktiviert"
|
msgstr "Deaktiviert"
|
||||||
|
\n
|
||||||
msgid "Share your location to see your router on the map"
|
msgid "Share your location to see your router on the map"
|
||||||
msgstr "Position für die Karte freigeben"
|
msgstr "Position für die Karte freigeben"
|
||||||
|
\n
|
||||||
msgid "Latitude"
|
msgid "Latitude"
|
||||||
msgstr "Breitengrad"
|
msgstr "Breitengrad"
|
||||||
|
\n
|
||||||
msgid "Longitude"
|
msgid "Longitude"
|
||||||
msgstr "Längengrad"
|
msgstr "Längengrad"
|
||||||
|
\n
|
||||||
msgid "e.g. %s"
|
msgid "e.g. %s"
|
||||||
msgstr "z.B. %s"
|
msgstr "z.B. %s"
|
||||||
|
@ -13,7 +13,7 @@ msgstr ""
|
|||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||||
|
\n
|
||||||
msgid ""
|
msgid ""
|
||||||
"If you want the location of your node to be displayed on the map, you may "
|
"If you want the location of your node to be displayed on the map, you may "
|
||||||
"enter its coordinates here. "
|
"enter its coordinates here. "
|
||||||
@ -28,24 +28,24 @@ msgstr ""
|
|||||||
"Si votre PC est connecté à Internet, vous pouvez également cliquer sur la carte ci-dessous."
|
"Si votre PC est connecté à Internet, vous pouvez également cliquer sur la carte ci-dessous."
|
||||||
#endif
|
#endif
|
||||||
"Gardez à l'esprit que la définition d'un emplacement peut également améliorer la qualité du réseau."
|
"Gardez à l'esprit que la définition d'un emplacement peut également améliorer la qualité du réseau."
|
||||||
|
\n
|
||||||
msgid "Geo-Location"
|
msgid "Geo-Location"
|
||||||
msgstr "Géolocalisation"
|
msgstr "Géolocalisation"
|
||||||
|
\n
|
||||||
msgid "Static location"
|
msgid "Static location"
|
||||||
msgstr "position manuelle"
|
msgstr "position manuelle"
|
||||||
|
\n
|
||||||
msgid "Disabled"
|
msgid "Disabled"
|
||||||
msgstr "Désactivé"
|
msgstr "Désactivé"
|
||||||
|
\n
|
||||||
msgid "Share your location to see your router on the map"
|
msgid "Share your location to see your router on the map"
|
||||||
msgstr "Partagez votre emplacement pour voir votre routeur sur la carte"
|
msgstr "Partagez votre emplacement pour voir votre routeur sur la carte"
|
||||||
|
\n
|
||||||
msgid "Latitude"
|
msgid "Latitude"
|
||||||
msgstr "Latitude"
|
msgstr "Latitude"
|
||||||
|
\n
|
||||||
msgid "Longitude"
|
msgid "Longitude"
|
||||||
msgstr "Longitude"
|
msgstr "Longitude"
|
||||||
|
\n
|
||||||
msgid "e.g. %s"
|
msgid "e.g. %s"
|
||||||
msgstr "Ex: %s"
|
msgstr "Ex: %s"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
msgid ""
|
msgid ""
|
||||||
msgstr "Content-Type: text/plain; charset=UTF-8"
|
msgstr "Content-Type: text/plain; charset=UTF-8"
|
||||||
|
\n
|
||||||
msgid ""
|
msgid ""
|
||||||
"If you want the location of your node to be displayed on the map, you may "
|
"If you want the location of your node to be displayed on the map, you may "
|
||||||
"enter its coordinates here. "
|
"enter its coordinates here. "
|
||||||
@ -9,24 +9,24 @@ msgid ""
|
|||||||
#endif
|
#endif
|
||||||
"Please keep in mind setting a location can also enhance the network quality."
|
"Please keep in mind setting a location can also enhance the network quality."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
\n
|
||||||
msgid "Geo-Location"
|
msgid "Geo-Location"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
\n
|
||||||
msgid "Static location"
|
msgid "Static location"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
\n
|
||||||
msgid "Disabled"
|
msgid "Disabled"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
\n
|
||||||
msgid "Share your location to see your router on the map"
|
msgid "Share your location to see your router on the map"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
\n
|
||||||
msgid "Latitude"
|
msgid "Latitude"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
\n
|
||||||
msgid "Longitude"
|
msgid "Longitude"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
\n
|
||||||
msgid "e.g. %s"
|
msgid "e.g. %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
Loading…
Reference in New Issue
Block a user