[libshumate/tintou/scale-i18n: 2/2] Enable internationalization support




commit e238421d9b47422ec22eb0903d570ca88d858a12
Author: Corentin Noël <corentin noel collabora com>
Date:   Wed May 11 23:26:15 2022 +0200

    Enable internationalization support
    
    Use the shumate1 gettext domain

 meson.build    |  3 +++
 po/LINGUAS     |  2 ++
 po/POTFILES    | 25 +++++++++++++++++++++++++
 po/meson.build |  3 +++
 4 files changed, 33 insertions(+)
---
diff --git a/meson.build b/meson.build
index 07044d7..0667ac1 100644
--- a/meson.build
+++ b/meson.build
@@ -86,6 +86,7 @@ if get_option('gtk_doc')
 endif
 
 add_project_arguments('-DSHUMATE_VERSION="@0@"'.format(meson.project_version()), language: 'c')
+add_project_arguments('-DGETTEXT_PACKAGE="shumate1"', language: 'c')
 
 # Options
 build_demos = get_option('demos')
@@ -108,6 +109,8 @@ subdir('data')
 
 subdir('shumate')
 
+subdir('po')
+
 subdir('docs')
 
 if build_demos == true
diff --git a/po/LINGUAS b/po/LINGUAS
new file mode 100644
index 0000000..bc8cbb0
--- /dev/null
+++ b/po/LINGUAS
@@ -0,0 +1,2 @@
+# please keep this list sorted alphabetically
+#
diff --git a/po/POTFILES b/po/POTFILES
new file mode 100644
index 0000000..eb58bc5
--- /dev/null
+++ b/po/POTFILES
@@ -0,0 +1,25 @@
+shumate/shumate-viewport.c
+shumate/shumate-vector-renderer.c
+shumate/shumate-user-agent.c
+shumate/shumate-tile-downloader.c
+shumate/shumate-tile.c
+shumate/shumate-simple-map.c
+shumate/shumate-scale.c
+shumate/shumate-raster-renderer.c
+shumate/shumate-point.c
+shumate/shumate-path-layer.c
+shumate/shumate-memory-cache.c
+shumate/shumate-marker-layer.c
+shumate/shumate-marker.c
+shumate/shumate-map-source-registry.c
+shumate/shumate-map-source.c
+shumate/shumate-map-layer.c
+shumate/shumate-map.c
+shumate/shumate-location.c
+shumate/shumate-license.c
+shumate/shumate-layer.c
+shumate/shumate-kinetic-scrolling.c
+shumate/shumate-file-cache.c
+shumate/shumate-data-source.c
+shumate/shumate-coordinate.c
+shumate/shumate-compass.c
diff --git a/po/meson.build b/po/meson.build
new file mode 100644
index 0000000..b69df19
--- /dev/null
+++ b/po/meson.build
@@ -0,0 +1,3 @@
+i18n = import('i18n')
+
+i18n.gettext('shumate1', preset : 'glib')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]