mirror of
https://github.com/Mibew/i18n.git
synced 2025-01-22 21:40:28 +03:00
- fully localized options window: added localization for options subcategory list;
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@83 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
parent
e9fad99416
commit
66af9827fb
@ -21,8 +21,8 @@ namespace webImTray {
|
|||||||
public void apply() {
|
public void apply() {
|
||||||
}
|
}
|
||||||
|
|
||||||
public string getDescription() {
|
public string getDescription(ResourceManager resManager) {
|
||||||
return "About";
|
return resManager.GetString("about");
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -10,7 +10,7 @@ namespace webImTray {
|
|||||||
interface OptionsPanel {
|
interface OptionsPanel {
|
||||||
void initialize();
|
void initialize();
|
||||||
void apply();
|
void apply();
|
||||||
string getDescription();
|
string getDescription(ResourceManager resManager);
|
||||||
void updateUI(ResourceManager resManager);
|
void updateUI(ResourceManager resManager);
|
||||||
|
|
||||||
event ModifiedEvent PanelModified;
|
event ModifiedEvent PanelModified;
|
||||||
|
@ -38,8 +38,8 @@ namespace webImTray {
|
|||||||
modified = false;
|
modified = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
string OptionsPanel.getDescription() {
|
string OptionsPanel.getDescription(ResourceManager resManager) {
|
||||||
return "Connection";
|
return resManager.GetString("connection");
|
||||||
}
|
}
|
||||||
|
|
||||||
public event ModifiedEvent PanelModified;
|
public event ModifiedEvent PanelModified;
|
||||||
|
@ -43,19 +43,24 @@ namespace webImTray {
|
|||||||
container.Controls.Add((Control)currentPanel);
|
container.Controls.Add((Control)currentPanel);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void optionsDialogLoaded(object sender, EventArgs e) {
|
private void updatePageSelector() {
|
||||||
bool inited = false;
|
bool inited = false;
|
||||||
|
pageSelector.Items.Clear();
|
||||||
foreach (OptionsPanel p in panels) {
|
foreach (OptionsPanel p in panels) {
|
||||||
ListViewItem item = new ListViewItem(p.getDescription());
|
ListViewItem item = new ListViewItem(p.getDescription(resourceManager));
|
||||||
if (!inited) {
|
if (!inited) {
|
||||||
item.Selected = true;
|
item.Selected = true;
|
||||||
changePanel(p);
|
changePanel(p);
|
||||||
inited = true;
|
inited = true;
|
||||||
}
|
}
|
||||||
|
pageSelector.Items.Add(item);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private void optionsDialogLoaded(object sender, EventArgs e) {
|
||||||
|
updatePageSelector();
|
||||||
|
foreach (OptionsPanel p in panels) {
|
||||||
p.PanelModified += new ModifiedEvent(panelModified);
|
p.PanelModified += new ModifiedEvent(panelModified);
|
||||||
p.initialize();
|
p.initialize();
|
||||||
pageSelector.Items.Add(item);
|
|
||||||
}
|
}
|
||||||
apply.Enabled = false;
|
apply.Enabled = false;
|
||||||
}
|
}
|
||||||
@ -66,7 +71,7 @@ namespace webImTray {
|
|||||||
|
|
||||||
OptionsPanel getPanel(string s) {
|
OptionsPanel getPanel(string s) {
|
||||||
foreach (OptionsPanel p in panels) {
|
foreach (OptionsPanel p in panels) {
|
||||||
if (s.Equals(p.getDescription()))
|
if (s.Equals(p.getDescription(resourceManager)))
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -111,6 +116,7 @@ namespace webImTray {
|
|||||||
currentInstance.cancel.Text = resourceManager.GetString("cancel");
|
currentInstance.cancel.Text = resourceManager.GetString("cancel");
|
||||||
currentInstance.apply.Text = resourceManager.GetString("apply");
|
currentInstance.apply.Text = resourceManager.GetString("apply");
|
||||||
currentInstance.Text = resourceManager.GetString("optionsTitle");
|
currentInstance.Text = resourceManager.GetString("optionsTitle");
|
||||||
|
currentInstance.updatePageSelector();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -62,8 +62,8 @@ namespace webImTray {
|
|||||||
modified = false;
|
modified = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
string OptionsPanel.getDescription() {
|
string OptionsPanel.getDescription(ResourceManager resManager) {
|
||||||
return "General";
|
return resManager.GetString("general");
|
||||||
}
|
}
|
||||||
|
|
||||||
public void updateUI(ResourceManager resManager) {
|
public void updateUI(ResourceManager resManager) {
|
||||||
|
@ -25,8 +25,8 @@ namespace webImTray {
|
|||||||
void OptionsPanel.initialize() {
|
void OptionsPanel.initialize() {
|
||||||
}
|
}
|
||||||
|
|
||||||
string OptionsPanel.getDescription() {
|
string OptionsPanel.getDescription(ResourceManager resManager) {
|
||||||
return "Sounds";
|
return resManager.GetString("sound");
|
||||||
}
|
}
|
||||||
|
|
||||||
public void updateUI(ResourceManager resManager) {
|
public void updateUI(ResourceManager resManager) {
|
||||||
|
@ -117,6 +117,9 @@
|
|||||||
<resheader name="writer">
|
<resheader name="writer">
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
|
<data name="about" xml:space="preserve">
|
||||||
|
<value>About</value>
|
||||||
|
</data>
|
||||||
<data name="application" xml:space="preserve">
|
<data name="application" xml:space="preserve">
|
||||||
<value>Application</value>
|
<value>Application</value>
|
||||||
</data>
|
</data>
|
||||||
@ -138,6 +141,9 @@
|
|||||||
<data name="connection" xml:space="preserve">
|
<data name="connection" xml:space="preserve">
|
||||||
<value>Connection</value>
|
<value>Connection</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="connectionMI" xml:space="preserve">
|
||||||
|
<value>Connection</value>
|
||||||
|
</data>
|
||||||
<data name="copyright" xml:space="preserve">
|
<data name="copyright" xml:space="preserve">
|
||||||
<value>Copyright (c) 2006-2008 Web Messenger Creators Community</value>
|
<value>Copyright (c) 2006-2008 Web Messenger Creators Community</value>
|
||||||
</data>
|
</data>
|
||||||
@ -147,6 +153,9 @@
|
|||||||
<data name="forceRefresh" xml:space="preserve">
|
<data name="forceRefresh" xml:space="preserve">
|
||||||
<value>Force page update every</value>
|
<value>Force page update every</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="general" xml:space="preserve">
|
||||||
|
<value>General</value>
|
||||||
|
</data>
|
||||||
<data name="hideWhenStarted" xml:space="preserve">
|
<data name="hideWhenStarted" xml:space="preserve">
|
||||||
<value>Hide window after start</value>
|
<value>Hide window after start</value>
|
||||||
</data>
|
</data>
|
||||||
@ -192,6 +201,9 @@
|
|||||||
<data name="showUserPreferences" xml:space="preserve">
|
<data name="showUserPreferences" xml:space="preserve">
|
||||||
<value>Click here to change your preferences online</value>
|
<value>Click here to change your preferences online</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="sound" xml:space="preserve">
|
||||||
|
<value>Sound</value>
|
||||||
|
</data>
|
||||||
<data name="url" xml:space="preserve">
|
<data name="url" xml:space="preserve">
|
||||||
<value>http://www.webim.ru</value>
|
<value>http://www.webim.ru</value>
|
||||||
</data>
|
</data>
|
||||||
|
@ -117,6 +117,9 @@
|
|||||||
<resheader name="writer">
|
<resheader name="writer">
|
||||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||||
</resheader>
|
</resheader>
|
||||||
|
<data name="about" xml:space="preserve">
|
||||||
|
<value>О программе</value>
|
||||||
|
</data>
|
||||||
<data name="application" xml:space="preserve">
|
<data name="application" xml:space="preserve">
|
||||||
<value>Приложение</value>
|
<value>Приложение</value>
|
||||||
</data>
|
</data>
|
||||||
@ -138,6 +141,9 @@
|
|||||||
<data name="connection" xml:space="preserve">
|
<data name="connection" xml:space="preserve">
|
||||||
<value>Соединение</value>
|
<value>Соединение</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="connectionMI" xml:space="preserve">
|
||||||
|
<value>Связь</value>
|
||||||
|
</data>
|
||||||
<data name="copyright" xml:space="preserve">
|
<data name="copyright" xml:space="preserve">
|
||||||
<value>(c), Команда разработчиков Веб Мессенджер, 2006-08</value>
|
<value>(c), Команда разработчиков Веб Мессенджер, 2006-08</value>
|
||||||
</data>
|
</data>
|
||||||
@ -147,6 +153,9 @@
|
|||||||
<data name="forceRefresh" xml:space="preserve">
|
<data name="forceRefresh" xml:space="preserve">
|
||||||
<value>Обновлять каждые</value>
|
<value>Обновлять каждые</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="general" xml:space="preserve">
|
||||||
|
<value>Общие</value>
|
||||||
|
</data>
|
||||||
<data name="hideWhenStarted" xml:space="preserve">
|
<data name="hideWhenStarted" xml:space="preserve">
|
||||||
<value>Прятать окно после запуска</value>
|
<value>Прятать окно после запуска</value>
|
||||||
</data>
|
</data>
|
||||||
@ -192,6 +201,9 @@
|
|||||||
<data name="showUserPreferences" xml:space="preserve">
|
<data name="showUserPreferences" xml:space="preserve">
|
||||||
<value>Изменить ваши настройки online</value>
|
<value>Изменить ваши настройки online</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="sound" xml:space="preserve">
|
||||||
|
<value>Звук</value>
|
||||||
|
</data>
|
||||||
<data name="url" xml:space="preserve">
|
<data name="url" xml:space="preserve">
|
||||||
<value>http://www.webim.ru</value>
|
<value>http://www.webim.ru</value>
|
||||||
</data>
|
</data>
|
||||||
|
Loading…
Reference in New Issue
Block a user