[vlc-commits] macosx: fix rendering issue in the about panel when running in non-Western locales
Felix Paul Kühne
git at videolan.org
Wed Jul 3 12:30:12 CEST 2013
vlc/vlc-2.1 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Wed Jul 3 12:29:02 2013 +0200| [ed61cdc2f80a484bc9441a2bb13ff9551a35fcc1] | committer: Felix Paul Kühne
macosx: fix rendering issue in the about panel when running in non-Western locales
(cherry picked from commit 261d8a334379e6f007f7cd373c542dfc2a167e27)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=ed61cdc2f80a484bc9441a2bb13ff9551a35fcc1
---
modules/gui/macosx/about.m | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/modules/gui/macosx/about.m b/modules/gui/macosx/about.m
index 66221b5..fe64b0d 100644
--- a/modules/gui/macosx/about.m
+++ b/modules/gui/macosx/about.m
@@ -129,13 +129,16 @@ static VLAboutBox *_o_sharedInstance = nil;
[o_authors retain];
/* setup join us! */
- NSString *joinus = [NSString stringWithString:_NS("<p>VLC media player is a free and open source media player, encoder, and streamer made by the volunteers of the "
- "<a href=\"http://www.videolan.org/\"><span style=\" text-decoration: underline; color:#0057ae;\">VideoLAN</span>"
- "</a> community.</p><p>VLC uses its internal codecs, works on essentially every popular platform, and can read "
- "almost all files, CDs, DVDs, network streams, capture cards and other media formats!</p><p>"
- "<a href=\"http://www.videolan.org/contribute/\"><span style=\" text-decoration: underline; color:#0057ae;\">Help "
- "and join us!</span></a>")];
- NSAttributedString *joinus_readytorender = [[NSAttributedString alloc] initWithHTML:[joinus dataUsingEncoding:NSUTF8StringEncoding allowLossyConversion:YES] documentAttributes:NULL];
+ NSString *joinus = [NSString stringWithUTF8String:_(""
+ "<p>VLC media player is a free and open source media player, encoder, and "
+ "streamer made by the volunteers of the <a href=\"http://www.videolan.org/"
+ "\"><span style=\" text-decoration: underline; color:#0057ae;\">VideoLAN</"
+ "span></a> community.</p><p>VLC uses its internal codecs, works on "
+ "essentially every popular platform, and can read almost all files, CDs, "
+ "DVDs, network streams, capture cards and other media formats!</p><p><a href="
+ "\"http://www.videolan.org/contribute/\"><span style=\" text-decoration: "
+ "underline; color:#0057ae;\">Help and join us!</span></a>")];
+ NSAttributedString *joinus_readytorender = [[NSAttributedString alloc] initWithHTML:[joinus dataUsingEncoding:NSUTF8StringEncoding allowLossyConversion:YES] options:[NSDictionary dictionaryWithObject:@(NSUTF8StringEncoding) forKey:NSCharacterEncodingDocumentOption] documentAttributes:NULL];
[o_joinus_txt setAllowsEditingTextAttributes: YES];
[o_joinus_txt setSelectable: YES];
[o_joinus_txt setAttributedStringValue:joinus_readytorender];
More information about the vlc-commits
mailing list