Browse Source

macosx: remove _ANS macro

_PNS is a better and "standard" way to handle these cases
pull/121/head
Marvin Scholz 6 years ago
committed by Jean-Baptiste Kempf
parent
commit
e352525a4d
  1. 5
      modules/gui/macosx/extensions/NSString+Helpers.h
  2. 2
      po/Makevars

5
modules/gui/macosx/extensions/NSString+Helpers.h

@ -40,11 +40,6 @@
*/
#define _PNS(c, s) (toNSStr(vlc_pgettext(c, s)))
/* Get an alternate version of the string.
* This string is stored as '1:string' but when displayed it only displays
* the translated string. the translation should be '1:translatedstring' though */
#define _ANS(s) [((s) ? toNSStr(vlc_gettext(s)) : @"") substringFromIndex:2]
extern NSString *const kVLCMediaAudioCD;
extern NSString *const kVLCMediaDVD;
extern NSString *const kVLCMediaVCD;

2
po/Makevars

@ -10,7 +10,7 @@ subdir = po
top_builddir = ..
# These options get passed to xgettext.
XGETTEXT_OPTIONS = --directory=.. --keyword=_ --keyword=N_ --keyword=_NS --keyword=_ANS --keyword=qtr --keyword=Q_ --language=C++ --keyword=vlc_ngettext:1,2 --keyword=vlc_pgettext:1c,2 --keyword=_PNS:1c,2 --add-comments=xgettext: --from-code=UTF-8
XGETTEXT_OPTIONS = --directory=.. --keyword=_ --keyword=N_ --keyword=_NS --keyword=qtr --keyword=Q_ --language=C++ --keyword=vlc_ngettext:1,2 --keyword=vlc_pgettext:1c,2 --keyword=_PNS:1c,2 --add-comments=xgettext: --from-code=UTF-8
# This is the copyright holder that gets inserted into the header of the
# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding

Loading…
Cancel
Save