Merge pull request #24 from alexcloutier/fix/2612

It is now possible to see the version on the general page of the preferences window
This commit is contained in:
extrafu 2014-04-04 08:33:39 -04:00
commit 7b0ffacff0
5 changed files with 14 additions and 0 deletions

1
.gitignore vendored
View file

@ -1,6 +1,7 @@
config.make config.make
tags tags
*/obj/ */obj/
*._*
*/*/obj/ */*/obj/
*/*/*/obj/ */*/*/obj/
*/*/*.SOGo/ */*/*.SOGo/

View file

@ -204,6 +204,7 @@
"Mail" = "Mail"; "Mail" = "Mail";
"Last" = "Last used"; "Last" = "Last used";
"Default module :" = "Default module:"; "Default module :" = "Default module:";
"SOGo version:" = "SOGo version:";
"Language :" = "Language:"; "Language :" = "Language:";
"choose" = "Choose ..."; "choose" = "Choose ...";

View file

@ -204,6 +204,7 @@
"Mail" = "Courrier"; "Mail" = "Courrier";
"Last" = "Dernier utilisé"; "Last" = "Dernier utilisé";
"Default module :" = "Module par défaut :"; "Default module :" = "Module par défaut :";
"SOGo version:" = "SOGo version:";
"Language :" = "Langue :"; "Language :" = "Langue :";
"choose" = "Choisir ..."; "choose" = "Choisir ...";

View file

@ -46,6 +46,7 @@
#import <SOGo/SOGoSystemDefaults.h> #import <SOGo/SOGoSystemDefaults.h>
#import <SOGo/SOGoUserFolder.h> #import <SOGo/SOGoUserFolder.h>
#import <SOGo/WOResourceManager+SOGo.h> #import <SOGo/WOResourceManager+SOGo.h>
#import <SOGo/SOGoBuild.h>
#import <Mailer/SOGoMailAccount.h> #import <Mailer/SOGoMailAccount.h>
#import <Mailer/SOGoMailAccounts.h> #import <Mailer/SOGoMailAccounts.h>
#import <Mailer/SOGoMailLabel.h> #import <Mailer/SOGoMailLabel.h>
@ -1137,6 +1138,14 @@ static NSArray *reminderValues = nil;
} }
} }
- (NSString *) sogoVersion
{
// The variable SOGoVersion comes from the import: SOGo/Build.h
NSString *sogoVersion = [NSString stringWithString: SOGoVersion];
return sogoVersion;
}
- (id <WOActionResults>) defaultAction - (id <WOActionResults>) defaultAction
{ {
id <WOActionResults> results; id <WOActionResults> results;

View file

@ -124,6 +124,8 @@
<div class="tabs"> <div class="tabs">
<div id="generalView" class="tab"> <div id="generalView" class="tab">
<dl class="dl-horizontal"> <dl class="dl-horizontal">
<dt><var:string label:value="SOGo version:"/></dt>
<dd><var:string value="sogoVersion"/></dd>
<dt><var:string label:value="Language :"/></dt> <dt><var:string label:value="Language :"/></dt>
<dd><var:popup list="languages" item="item" <dd><var:popup list="languages" item="item"
const:id="language" const:id="language"