Mac MGR: allow localiztion of permissions error alerts

svn path=/trunk/boinc/; revision=19434
This commit is contained in:
Charlie Fenton 2009-10-31 08:39:00 +00:00
parent eb3e99107b
commit 53af8c7a2b
2 changed files with 9 additions and 2 deletions

View File

@ -8858,10 +8858,17 @@ Charlie 30 Oct 2009
Charlie 31 Oct 2009 Charlie 31 Oct 2009
- MGR: initialize localization stuff before checking permissions so that - MGR: initialize localization stuff before checking permissions so that
the Mac Sandbox permissions error alerts can be translated. the Mac Sandbox permissions error alerts can be translated.
- MGR: Removed a trailing newline character from the permissions error
alert string, because it was preventing translation.
- Mac installer: set locale directory permissions to world readable so - Mac installer: set locale directory permissions to world readable so
the Mac Sandbox permissions error alerts can be translated when the the Mac Sandbox permissions error alerts can be translated when the
user is not a member of group boinc_master. user is not a member of group boinc_master.
NOTE: There seems to be a bug in the localization software: if a
localizable string ends with a newline character, that terailing
newline is not included in the .mo file, so apparently the string
never matches and is not translated.
clientgui/ clientgui/
BOINCGUIApp.cpp BOINCGUIApp.cpp

View File

@ -336,7 +336,7 @@ bool CBOINCGUIApp::OnInit() {
_("You currently are not authorized to manage the client.\n\nTo run BOINC as this user, please:\n - reinstall BOINC answering \"Yes\" to the question about\n non-administrative users\n or\n - contact your administrator to add you to the 'boinc_master'\n user group."); _("You currently are not authorized to manage the client.\n\nTo run BOINC as this user, please:\n - reinstall BOINC answering \"Yes\" to the question about\n non-administrative users\n or\n - contact your administrator to add you to the 'boinc_master'\n user group.");
} else { } else {
strDialogMessage.Printf( strDialogMessage.Printf(
_("BOINC ownership or permissions are not set properly; please reinstall BOINC.\n(Error code %d)\n"), _("BOINC ownership or permissions are not set properly; please reinstall BOINC.\n(Error code %d)"),
iErrorCode iErrorCode
); );