26 Commits

Author SHA1 Message Date
Lawrence Lee
1d03fba1c4
Add Ukrainian translation
Provided by strange-sparrow in
https://github.com/Beep6581/RawTherapee/issues/7216.
2024-10-26 12:13:30 -07:00
Stephen Shkardoon
23f2a2fc9f Use _WIN32 instead of WIN32 to detect Windows
`WIN32` is not defined when building a 64-bit executable on Windows with Clang. `_WIN32` is the more appropriate option here.
http://web.archive.org/web/20191012035921/http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_system contains a handy table/matrix of the options and why this is best.
2023-08-13 17:09:49 +12:00
Lawrence Lee
6bd822352e
Display actual language names in preferences
Add ability to set metadata variables in the language files.
Use the LANGUAGE_DISPLAY_NAME metadata variable value in preferences to
show the languages.

Metadata variables are defined in the first section of a language file,
i.e. the comments at the beginning of the file. At most one variable can
be defined per line. The definition takes the following format:
    #<header><whitespace>@<key>=<value>
where:
    <header> is any sequence of non-whitespace characters
    <whitespace> is any non-empty sequence of whitespace characters
    <key> is the metadata key name
    <value> is the metadata value
For example,
    #101 @LANGUAGE_DISPLAY_NAME=English (US)
defines a metadata key "LANGUAGE_DISPLAY_NAME" with value
"English (US)". Lines that do not match the format are ignored.
2023-07-04 17:52:01 -07:00
Lawrence37
dfede05312
Add Castellano language, fix some default language detection (#6547)
Closes #6530 
Language file provided by Francisco Lorés and Javier Bartol
2022-08-26 10:44:22 +02:00
Benitoite
b1e7860a23
mac: update of macosx_bundle.sh (#5786)
Various changes to improve compilation of RT on macOS thanks to @Benitoite and @Pandagrapher 
* mac: use sed -i.bak, add X's to mktemp template in macosx_bundle.sh
* mac: test lensfun version in macosx_bundle.sh to select correct lensfun database version (version_1 for 3.2 and version_2 for 3.95)
* mac: remove DYLD_FALLBACK_LIBRARY_PATH from main Info.plist
* mac: removes some -cli codesigning commands
* mac: remove erroneous newlines in macosx_bundle.sh and suppress superfluous codesigning of Contents/Frameworks/*dylib
* mac: Apple arm64/homebrew compatibility update
* mac: CMakeLists.txt arm64 homebrew compatibility
* mac: add Apple arm64 CPU native flag
* mac: fix pixbuf query syntax
* mac: adapt. of Pandagrapher's patch
* mac: additional instructions for the -cli exec.
* mac: revert target 10
* mac: remove legacy environment variable Per https://github.com/Beep6581/RawTherapee/pull/5786#issuecomment-792276656
* mac: fix destination of credits/license
* mac: copy {LOCAL_PREFIX}/share/locale to bundle
* mac: fixes a path for the License
* mac: fix of UpdateInfo command structure
* mac: remove redundant copying
* mac: use cmake to configure Info.plist values
* mac: configurator for Info.plist version values
* mac: fix locale detection / language
* mac: remove an outdated key from Info.plist
* mac: fix path usage for gtk.immodules / locale dir
* mac: revert a change merged elsewhere
* mac: follow more symlinks for 'brew builds
* mac: link to CoreFoundation for locale detection
* mac: link CoreFoundation for locale / C
* mac: detect locale with CoreFoundation per https://github.com/Beep6581/RawTherapee/pull/5786#issuecomment-798926898
* mac: remove outdated lines
* Update multilangmgr.cc
* mac: Info.plist language fixes (Pandagrapher) https://github.com/Beep6581/RawTherapee/pull/5786#issuecomment-813004475
* Mac: also package libpng12 for homebrew compatibility.
* macOS packaging and language updates
2021-08-09 07:11:09 +02:00
Morgan Hardwood
60b2196bce Updated gnu.org links to use HTTPS 2019-09-10 12:34:57 +02:00
heckflosse
357cf3a89e Reduce memory allocations/deallocations and string copies when loading language files 2019-05-14 00:23:10 +02:00
heckflosse
de6ee457e6 Revert "MultiLangMgr::getOSUserLanguage (): get rid of special windows code"
This reverts commit 562ed3b22a964b6561fcb2bc18dd5a0322a580ce.
2019-01-04 14:02:24 +01:00
heckflosse
562ed3b22a MultiLangMgr::getOSUserLanguage (): get rid of special windows code 2018-12-02 21:07:54 +01:00
heckflosse
6c5696a976 Fixed failed system language detection for de, fr, nl, es, it, pt in case locale is != xx_XX, for example it failed for de_AT 2018-03-02 19:37:08 +01:00
heckflosse
ee4546e16f use en_UK instead of en_GB for Apple 2018-02-11 12:56:16 +01:00
heckflosse
c50c6b2287 setenv(LANG, ...) too late, fixes #4319 2018-02-10 23:18:43 +01:00
heckflosse
786b73b899 use g_setenv() and g_getenv() in setGtkLanguage(), #4319 2018-02-09 21:01:59 +01:00
heckflosse
ab47193d8b Some fixes for setting of LANG, #4319 2018-02-09 20:26:03 +01:00
Flössie
b53e773fbb Copy locale suffix to new LANG setting (by @heckflosse, #4319) 2018-02-08 21:28:44 +01:00
heckflosse
309eef696b Set gtk language based on selected language in RT, fixes #4278, kudos to @agriggio 2018-01-06 18:46:20 +01:00
heckflosse
8c328cafd1 get rid of fallbackMgr in MultiLangMgr, fixes #4154 2017-10-20 21:05:19 +02:00
heckflosse
43ea69447f Skip language file entries starting with ! 2017-10-16 21:54:09 +02:00
Alberto Griggio
9a47164c46 use the LANG env var (if set) to determine the system language on Linux/Mac
Candidate fix for #3864
2017-05-06 21:21:07 +02:00
Adam Reichold
8a86094198 Add back missing handling of newline characters in translation files using C++11 regular expression support. 2016-01-11 23:09:26 +01:00
Adam Reichold
255ba25164 Simplify the multiple language manager for better maintainability. 2016-01-08 22:52:01 +01:00
Adam Reichold
31eef89118 Use the LOCAL_SISO* constants to determine the language name on Windows to support systems older than Vista. 2015-12-29 15:37:45 +01:00
DrSlony
0e0cfb9b25 Formatted all .cc and .h code in rtengine, rtexif and rtgui using astyle 2015-08-11 11:55:03 +02:00
DrSlony
16061aad88 Removed unused files 2015-08-09 20:56:10 +02:00
Ingo
37352b02ef Possibly fixes some compile errors when using gcc 5.x on windows, no Issue 2015-08-05 18:31:10 +02:00
torger
d5ca351c20 Issue 2134: removed obsolete raw highlight preservation setting from GUI (still left in procparams for backwards compatilibility) 2015-07-10 12:00:36 +02:00