1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-14 16:46:28 +01:00

New library lib-strings for Identifier and internationalization

This commit is contained in:
Paul Licameli
2021-02-16 21:14:33 -05:00
parent 70c4898648
commit 45c6190c51
37 changed files with 75 additions and 50 deletions

View File

@@ -0,0 +1,35 @@
#[[
String wrapping types and internationalization support.
Identifier and specializations of TaggedIdentifier generate types of strings
used for different internal purposes, not meant for users to see (except
sometimes in macro programming), and the types do not implicitly interconvert.
TranslatableString holds the English msgid of a string meant for a user to see,
and can also bind formatting arguments. It can generate a translation later,
even if the global choice of locale changes during its lifetime. It does not
implicitly interconvert with wxString.
This library depends only on the wxBase subset of wxWidgets.
]]#
set( SOURCES
Identifier.cpp
Identifier.h
Internat.cpp
Internat.h
Languages.cpp
Languages.h
TranslatableString.cpp
TranslatableString.h
UnusedStrings.h
wxArrayStringEx.h
wxArrayStringEx.cpp
)
set( LIBRARIES
PRIVATE
wxBase
)
audacity_library( lib-strings "${SOURCES}" "${LIBRARIES}"
"" ""
)