[gimp/nielsdg/fix-po-tips] po-tips: Fix gettext translation




commit a12093ebd9c4fc803c03b425e31c32e56fa544ec
Author: Niels De Graef <nielsdegraef gmail com>
Date:   Mon Jun 27 15:14:01 2022 +0200

    po-tips: Fix gettext translation

 data/tips/its/gimp-tips.its | 5 ++++-
 po-tips/meson.build         | 6 +++++-
 2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/data/tips/its/gimp-tips.its b/data/tips/its/gimp-tips.its
index e7809f15c6..97222bee9f 100644
--- a/data/tips/its/gimp-tips.its
+++ b/data/tips/its/gimp-tips.its
@@ -1,5 +1,8 @@
 <?xml version="1.0"?>
-<its:rules xmlns:its="http://www.w3.org/2005/11/its"; version="1.0">
+<its:rules xmlns:its="http://www.w3.org/2005/11/its"; version="2.0">
+  <its:withinTextRule withinText="yes" selector="//thetip//b |
+                                                 //thetip//big |
+                                                 //thetip//tt"/>
   <its:translateRule selector="/gimp-tips" translate="no"/>
   <its:translateRule selector="//thetip" translate="yes"/>
 </its:rules>
diff --git a/po-tips/meson.build b/po-tips/meson.build
index e328bdf9c9..e0e1fd34ef 100644
--- a/po-tips/meson.build
+++ b/po-tips/meson.build
@@ -1,2 +1,6 @@
 potips_dir = meson.current_source_dir()
-i18n.gettext(gettext_package + '-tips', preset: 'glib', install: false)
+i18n.gettext(gettext_package + '-tips',
+  preset: 'glib',
+  install: false,
+  data_dirs: meson.project_source_root() / 'data' / 'tips',
+)


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