Skip to content

Commit eb17b5c

Browse files
committed
try to enable translation in pbd, no success for the moment
1 parent 8619411 commit eb17b5c

File tree

4 files changed

+166
-0
lines changed

4 files changed

+166
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ tags
6161
/libs/gtkmm2ext/libgtkmm2ext.pot
6262
/libs/tk/ytk/po/*.mo
6363
/libs/tk/ytk/*.pot
64+
/libs/pbd/po/*.mo
65+
/libs/pbd/*/pot
6466
/gtk2_ardour/appdata/po/*.mo
6567
/gtk2_ardour/appdata/*.pot
6668
/gtk2_ardour/ardour.appdata.xml.in

libs/pbd/po/fr.po

+142
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
# SOME DESCRIPTIVE TITLE.
2+
# Copyright (C) YEAR "Paul Davis"
3+
# This file is distributed under the same license as the PACKAGE package.
4+
# Mathieu PICOT <picotmathieu.gmail.com>, 2025.
5+
#
6+
msgid ""
7+
msgstr ""
8+
"Project-Id-Version: libpbd 4\n"
9+
"Report-Msgid-Bugs-To: \n"
10+
"POT-Creation-Date: 2025-04-14 11:14+0200\n"
11+
"PO-Revision-Date: 2025-04-14 11:14+0200\n"
12+
"Last-Translator: Mathieu PICOT <picotmathieu@gmail.com>\n"
13+
"Language-Team: \n"
14+
"Language: fr\n"
15+
"MIME-Version: 1.0\n"
16+
"Content-Type: text/plain; charset=UTF-8\n"
17+
"Content-Transfer-Encoding: 8bit\n"
18+
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
19+
"X-Generator: Poedit 2.2.1\n"
20+
"X-Poedit-SourceCharset: UTF-8\n"
21+
"X-Poedit-Basepath: ..\n"
22+
23+
#: convert.cc:126
24+
msgid ""
25+
"\"\n"
26+
"\t ,<.>/?:;'[{}]~`!@#$%^&*()_-+="
27+
msgstr ""
28+
29+
#: convert.cc:135
30+
msgid "aeiou"
31+
msgstr "aâàeéèêëiïoôuùy"
32+
33+
#: convert.cc:144
34+
msgid "AEIOU"
35+
msgstr "AÂÀEÉÈÊËIÏOÔUÙY"
36+
37+
#: convert.cc:153
38+
msgid "bcdfghjklmnpqrtvwxyz"
39+
msgstr ""
40+
41+
#: convert.cc:162
42+
msgid "BCDFGHJKLMNPQRTVWXYZ"
43+
msgstr ""
44+
45+
#: debug.cc:164
46+
msgid ""
47+
"The following debug options are available. Separate multiple options with "
48+
"commas.\n"
49+
"Names are case-insensitive and can be abbreviated."
50+
msgstr ""
51+
52+
#: downloader.cc:74
53+
msgid "Could not create clip library dir %1 (%2)"
54+
msgstr ""
55+
56+
#: downloader.cc:79
57+
msgid "Clip library dir (%1) is not a directory"
58+
msgstr ""
59+
60+
#: downloader.cc:161
61+
msgid "Download failed, error code %1 (%2)"
62+
msgstr ""
63+
64+
#: enumwriter.cc:104 enumwriter.cc:120
65+
msgid "enum type \"%1\" already registered with the enum writer"
66+
msgstr ""
67+
68+
#: enumwriter.cc:130 enumwriter.cc:147
69+
msgid "EnumWriter: unknown enumeration type \"%1\""
70+
msgstr ""
71+
72+
#: enumwriter.cc:206
73+
msgid "unknown enumeration"
74+
msgstr ""
75+
76+
#: enumwriter.cc:221
77+
msgid "Illegal value loaded for %1 (%2) - %3 used instead"
78+
msgstr ""
79+
80+
#: file_utils.cc:317
81+
msgid "Unable to Open files %1 to %2 for Copying(%3)"
82+
msgstr ""
83+
84+
#: file_utils.cc:331
85+
msgid "Unable to Copy files %1 to %2(%3)"
86+
msgstr ""
87+
88+
#: file_utils.cc:369
89+
msgid "Unable to query file timestamp from %1 to %2"
90+
msgstr ""
91+
92+
#: file_utils.cc:376
93+
msgid "Unable to preseve file timestamp from %1 to %2"
94+
msgstr ""
95+
96+
#: file_utils.cc:565
97+
msgid "cannot remove path %1 (%2)"
98+
msgstr ""
99+
100+
#: fpu.cc:157
101+
msgid "FPU object instantiated more than once"
102+
msgstr ""
103+
104+
#: fpu.cc:203
105+
msgid "CPU vendor: %1"
106+
msgstr ""
107+
108+
#: fpu.cc:218
109+
msgid "AVX capable processor"
110+
msgstr ""
111+
112+
#: fpu.cc:223
113+
msgid "AVX with FMA capable processor"
114+
msgstr ""
115+
116+
#: fpu.cc:228
117+
msgid "AVX512F capable processor"
118+
msgstr ""
119+
120+
#: fpu.cc:340
121+
msgid "CPU brand: %1"
122+
msgstr ""
123+
124+
#: malign.cc:45 malign.cc:53 malign.cc:84 malign.cc:92
125+
msgid "Memory allocation error: malloc (%1 * %2) failed (%3)"
126+
msgstr ""
127+
128+
#: malign.cc:62 malign.cc:101
129+
msgid "Memory allocation error: posix_memalign (%1 * %2) failed (%3)"
130+
msgstr ""
131+
132+
#: stateful.cc:115
133+
msgid "Error: could not create directory %1"
134+
msgstr ""
135+
136+
#: stateful.cc:146
137+
msgid "Error: could not write %1"
138+
msgstr ""
139+
140+
#: stateful.cc:161
141+
msgid "Could not understand XML file %1"
142+
msgstr ""

libs/pbd/wscript

+21
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from waflib.extras import autowaf as autowaf
33
from waflib import Options
44
from waflib import TaskGen
5+
import os
56
import sys
67

78
# Version of this package (even if built as a child)
@@ -181,6 +182,14 @@ def build(bld):
181182
obj.source += [ 'windows_mmcss.cc' ]
182183
obj.uselib += ' OLE'
183184

185+
# i18n
186+
if bld.is_defined('ENABLE_NLS'):
187+
mo_files = bld.path.ant_glob('po/*.mo')
188+
for mo in mo_files:
189+
lang = os.path.basename(mo.srcpath()).replace('.mo', '')
190+
bld.install_as(os.path.join(bld.env['LOCALEDIR'], lang, 'LC_MESSAGES', I18N_PACKAGE + '.mo'),
191+
mo)
192+
184193
if bld.env['BUILD_TESTS'] and bld.is_defined('HAVE_CPPUNIT'):
185194
# Unit tests
186195
testobj = bld(features = 'cxx cxxprogram')
@@ -209,3 +218,15 @@ def build(bld):
209218
testobj.defines = [ 'PACKAGE="' + I18N_PACKAGE + '"' ]
210219
if sys.platform != 'darwin' and bld.env['build_target'] != 'mingw':
211220
testobj.lib = ['rt', 'dl']
221+
222+
def i18n_func(bld):
223+
autowaf.build_i18n(bld, '.', 'libs/pbd', I18N_PACKAGE, libpbd_sources)
224+
225+
def i18n_pot_func(bld):
226+
autowaf.build_i18n_pot(bld, '.', 'libs/pbd', I18N_PACKAGE, libpbd_sources)
227+
228+
def i18n_po_func(bld):
229+
autowaf.build_i18n_po(bld, '.', 'libs/pbd', I18N_PACKAGE, libpbd_sources)
230+
231+
def i18n_mo_func(bld):
232+
autowaf.build_i18n_mo(bld, '.', 'libs/pbd', I18N_PACKAGE, libpbd_sources)

wscript

+1
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@ i18n_children = [
399399
'libs/ardour',
400400
'libs/gtkmm2ext',
401401
'libs/tk/ytk',
402+
'libs/pbd'
402403
]
403404

404405
def set_compiler_flags (conf,opt):

0 commit comments

Comments
 (0)