summaryrefslogtreecommitdiff
path: root/test cases/frameworks/38 gettext extractor/src/main.c
diff options
context:
space:
mode:
authorCharles Brunet <charles.brunet@optelgroup.com>2024-11-07 10:58:14 -0500
committerJussi Pakkanen <jpakkane@gmail.com>2025-04-09 18:41:00 +0300
commit1afdac1bc4cbf9816e7109bbedef2825c4fe1155 (patch)
tree1a378a4ccd00e0e49c831f32e324fa8e0db7f6ab /test cases/frameworks/38 gettext extractor/src/main.c
parent0c9420205cc132743e5b3788b3a6a87502e79415 (diff)
downloadmeson-1afdac1bc4cbf9816e7109bbedef2825c4fe1155.tar.gz
New xgettext method for i18n module
This method call xgettext to extract translatable string from source files into a .pot translation template. It differs from a plain CustomTarget in three ways: - It accepts build targets as sources, and automatically resolves source files from those build targets; - It detects command lines that are too long, and writes, at config time, the list of source files into a text file to be consumed by the xgettext command; - It detects dependencies between pot extraction targets, based on the dependencies between source targets.
Diffstat (limited to 'test cases/frameworks/38 gettext extractor/src/main.c')
-rw-r--r--test cases/frameworks/38 gettext extractor/src/main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test cases/frameworks/38 gettext extractor/src/main.c b/test cases/frameworks/38 gettext extractor/src/main.c
new file mode 100644
index 000000000..807096bd7
--- /dev/null
+++ b/test cases/frameworks/38 gettext extractor/src/main.c
@@ -0,0 +1,8 @@
+#include <lib2.h>
+
+int main(void)
+{
+ say_something_else();
+
+ return 0;
+}