Parcourir la source

docs: some i18n clarifications

Matthias Schiffer il y a 9 ans
Parent
commit
f958ff718e
1 fichiers modifiés avec 9 ajouts et 1 suppressions
  1. 9 1
      docs/dev/i18n.rst

+ 9 - 1
docs/dev/i18n.rst

@@ -38,8 +38,15 @@ The entries in the template can be reordered after the generation if desirable.
 translations like "Cancel" are already available in the LuCI base translation file (see
 ``packages/luci/po/templates/base.pot``) and can be removed from the template.
 
-In addition, the i18n files must be installed in the package's Makefile::
+In addition, some additions to the Makefile must be made. Instead of OpenWrt's default package.mk,
+the Gluon version ``$(GLUONDIR)/include/package.mk`` must be used. The i18n files must be installed
+and PKG_CONFIG_DEPENDS must be added::
 
+  ...
+  include $(GLUONDIR)/include/package.mk
+
+  PKG_CONFIG_DEPENDS += $(GLUON_I18N_CONFIG)
+  ...
   define Build/Compile
     $(call GluonBuildI18N,gluon-config-mode-geo-location,i18n)
   endef
@@ -48,6 +55,7 @@ In addition, the i18n files must be installed in the package's Makefile::
     ...
     $(call GluonInstallI18N,gluon-config-mode-geo-location,$(1))
   endef
+  ...
 
 
 Adding translations