mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-11 09:06:33 +01:00
add skeleton for i18n support
git-svn-id: svn://localhost/ardour2/branches/3.0@9977 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
868e871486
commit
dd6e76ad89
2 changed files with 17 additions and 0 deletions
16
libs/evoral/src/i18n.h
Normal file
16
libs/evoral/src/i18n.h
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
#ifndef __i18n_h__
|
||||||
|
#define __i18n_h__
|
||||||
|
|
||||||
|
#include "pbd/compose.h"
|
||||||
|
#include "pbd/convert.h"
|
||||||
|
#include "gettext.h"
|
||||||
|
|
||||||
|
#include <vector>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
#define _(Text) dgettext (PACKAGE,Text)
|
||||||
|
#define N_(Text) gettext_noop (Text)
|
||||||
|
#define X_(Text) Text
|
||||||
|
#define I18N(Array) PBD::internationalize (PACKAGE, Array)
|
||||||
|
|
||||||
|
#endif // __i18n_h__
|
||||||
|
|
@ -95,6 +95,7 @@ def build(bld):
|
||||||
obj.uselib_local = 'libsmf libpbd'
|
obj.uselib_local = 'libsmf libpbd'
|
||||||
obj.vnum = EVORAL_LIB_VERSION
|
obj.vnum = EVORAL_LIB_VERSION
|
||||||
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
|
obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
|
||||||
|
obj.defines = ['PACKAGE="libevoral"' ]
|
||||||
|
|
||||||
if bld.env['BUILD_TESTS'] and bld.env['HAVE_CPPUNIT']:
|
if bld.env['BUILD_TESTS'] and bld.env['HAVE_CPPUNIT']:
|
||||||
# Static library (for unit test code coverage)
|
# Static library (for unit test code coverage)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue