Johnny C. Lam [11-10-13 - 00:32]
diff --git a/Locale-deDE.lua b/Locale-deDE.lua
deleted file mode 100644
index 26167c7..0000000
--- a/Locale-deDE.lua
+++ /dev/null
@@ -1,4 +0,0 @@
-local L = LibStub:GetLibrary("AceLocale-3.0"):NewLocale("Ovale", "deDE", false)
-if not L then return end
-
---@localization(locale="deDE", format="lua_additive_table", same-key-is-true=true, handle-subnamespaces="concat")@
\ No newline at end of file
diff --git a/Locale-enUS.lua b/Locale-enUS.lua
deleted file mode 100644
index 0d738f8..0000000
--- a/Locale-enUS.lua
+++ /dev/null
@@ -1,10 +0,0 @@
-local defaultLanguage = true
---@debug@
-defaultLanguage = false
---@end-debug@
-
-local AceLocale = LibStub:GetLibrary("AceLocale-3.0")
-local L = AceLocale:NewLocale("Ovale", "enUS", defaultLanguage)
-if not L then return end
-
---@localization(locale="enUS", format="lua_additive_table", same-key-is-true=true, handle-subnamespaces="concat")@
\ No newline at end of file
diff --git a/Locale-esES.lua b/Locale-esES.lua
deleted file mode 100644
index 030c053..0000000
--- a/Locale-esES.lua
+++ /dev/null
@@ -1,4 +0,0 @@
-local L = LibStub:GetLibrary("AceLocale-3.0"):NewLocale("Ovale", "esES", false)
-if not L then return end
-
---@localization(locale="esES", format="lua_additive_table", same-key-is-true=true, handle-subnamespaces="concat")@
\ No newline at end of file
diff --git a/Locale-frFR.lua b/Locale-frFR.lua
deleted file mode 100644
index 53bd49a..0000000
--- a/Locale-frFR.lua
+++ /dev/null
@@ -1,9 +0,0 @@
-local defaultLanguage = false
---@debug@
-defaultLanguage = true
---@end-debug@
-
-local L = LibStub:GetLibrary("AceLocale-3.0"):NewLocale("Ovale", "frFR", defaultLanguage, true)
-if not L then return end
-
---@localization(locale="frFR", format="lua_additive_table", same-key-is-true=true, handle-subnamespaces="concat")@
diff --git a/Locale-itIT.lua b/Locale-itIT.lua
deleted file mode 100644
index 0f0c005..0000000
--- a/Locale-itIT.lua
+++ /dev/null
@@ -1,4 +0,0 @@
-local L = LibStub:GetLibrary("AceLocale-3.0"):NewLocale("Ovale", "itIT", false)
-if not L then return end
-
---@localization(locale="itIT", format="lua_additive_table", same-key-is-true=true, handle-subnamespaces="concat")@
\ No newline at end of file
diff --git a/Locale-koKR.lua b/Locale-koKR.lua
deleted file mode 100644
index be721e6..0000000
--- a/Locale-koKR.lua
+++ /dev/null
@@ -1,4 +0,0 @@
-local L = LibStub:GetLibrary("AceLocale-3.0"):NewLocale("Ovale", "koKR", false)
-if not L then return end
-
---@localization(locale="koKR", format="lua_additive_table", same-key-is-true=true, handle-subnamespaces="concat")@
\ No newline at end of file
diff --git a/Locale-ptBR.lua b/Locale-ptBR.lua
deleted file mode 100644
index 78f3bc1..0000000
--- a/Locale-ptBR.lua
+++ /dev/null
@@ -1,4 +0,0 @@
-local L = LibStub:GetLibrary("AceLocale-3.0"):NewLocale("Ovale", "ptBR", false)
-if not L then return end
-
---@localization(locale="ptBR", format="lua_additive_table", same-key-is-true=true, handle-subnamespaces="concat")@
\ No newline at end of file
diff --git a/Locale-ruRU.lua b/Locale-ruRU.lua
deleted file mode 100644
index 04f391e..0000000
--- a/Locale-ruRU.lua
+++ /dev/null
@@ -1,4 +0,0 @@
-local L = LibStub:GetLibrary("AceLocale-3.0"):NewLocale("Ovale", "ruRU", false)
-if not L then return end
-
---@localization(locale="ruRU", format="lua_additive_table", same-key-is-true=true, handle-subnamespaces="concat")@
\ No newline at end of file
diff --git a/Locale-zhCN.lua b/Locale-zhCN.lua
deleted file mode 100644
index 8959e04..0000000
--- a/Locale-zhCN.lua
+++ /dev/null
@@ -1,4 +0,0 @@
-local L = LibStub:GetLibrary("AceLocale-3.0"):NewLocale("Ovale", "zhCN", false)
-if not L then return end
-
---@localization(locale="zhCN", format="lua_additive_table", same-key-is-true=true, handle-subnamespaces="concat")@
\ No newline at end of file
diff --git a/Locale-zhTW.lua b/Locale-zhTW.lua
deleted file mode 100644
index 936c58e..0000000
--- a/Locale-zhTW.lua
+++ /dev/null
@@ -1,4 +0,0 @@
-local L = LibStub:GetLibrary("AceLocale-3.0"):NewLocale("Ovale", "zhTW", false)
-if not L then return end
-
---@localization(locale="zhTW", format="lua_additive_table", same-key-is-true=true, handle-subnamespaces="concat")@
\ No newline at end of file
diff --git a/Ovale.toc b/Ovale.toc
index dcfb934..8b1514e 100644
--- a/Ovale.toc
+++ b/Ovale.toc
@@ -14,7 +14,7 @@
#@no-lib-strip@
embeds.xml
#@end-no-lib-strip@
-locales.xml
+locales\locales.xml
Ovale.lua
diff --git a/locales.xml b/locales.xml
deleted file mode 100644
index 8e84785..0000000
--- a/locales.xml
+++ /dev/null
@@ -1,15 +0,0 @@
-<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/ ..\FrameXML\UI.xsd">
- <!-- Default locale -->
- <Script file="Locale-frFR.lua" />
-
- <!-- Translations -->
- <Script file="Locale-deDE.lua" />
- <Script file="Locale-enUS.lua" />
- <Script file="Locale-esES.lua" />
- <Script file="Locale-itIT.lua" />
- <Script file="Locale-koKR.lua" />
- <Script file="Locale-ptBR.lua" />
- <Script file="Locale-ruRU.lua" />
- <Script file="Locale-zhCN.lua" />
- <Script file="Locale-zhTW.lua" />
-</Ui>
diff --git a/locales/Locale-deDE.lua b/locales/Locale-deDE.lua
new file mode 100644
index 0000000..26167c7
--- /dev/null
+++ b/locales/Locale-deDE.lua
@@ -0,0 +1,4 @@
+local L = LibStub:GetLibrary("AceLocale-3.0"):NewLocale("Ovale", "deDE", false)
+if not L then return end
+
+--@localization(locale="deDE", format="lua_additive_table", same-key-is-true=true, handle-subnamespaces="concat")@
\ No newline at end of file
diff --git a/locales/Locale-enUS.lua b/locales/Locale-enUS.lua
new file mode 100644
index 0000000..0d738f8
--- /dev/null
+++ b/locales/Locale-enUS.lua
@@ -0,0 +1,10 @@
+local defaultLanguage = true
+--@debug@
+defaultLanguage = false
+--@end-debug@
+
+local AceLocale = LibStub:GetLibrary("AceLocale-3.0")
+local L = AceLocale:NewLocale("Ovale", "enUS", defaultLanguage)
+if not L then return end
+
+--@localization(locale="enUS", format="lua_additive_table", same-key-is-true=true, handle-subnamespaces="concat")@
\ No newline at end of file
diff --git a/locales/Locale-esES.lua b/locales/Locale-esES.lua
new file mode 100644
index 0000000..030c053
--- /dev/null
+++ b/locales/Locale-esES.lua
@@ -0,0 +1,4 @@
+local L = LibStub:GetLibrary("AceLocale-3.0"):NewLocale("Ovale", "esES", false)
+if not L then return end
+
+--@localization(locale="esES", format="lua_additive_table", same-key-is-true=true, handle-subnamespaces="concat")@
\ No newline at end of file
diff --git a/locales/Locale-frFR.lua b/locales/Locale-frFR.lua
new file mode 100644
index 0000000..53bd49a
--- /dev/null
+++ b/locales/Locale-frFR.lua
@@ -0,0 +1,9 @@
+local defaultLanguage = false
+--@debug@
+defaultLanguage = true
+--@end-debug@
+
+local L = LibStub:GetLibrary("AceLocale-3.0"):NewLocale("Ovale", "frFR", defaultLanguage, true)
+if not L then return end
+
+--@localization(locale="frFR", format="lua_additive_table", same-key-is-true=true, handle-subnamespaces="concat")@
diff --git a/locales/Locale-itIT.lua b/locales/Locale-itIT.lua
new file mode 100644
index 0000000..0f0c005
--- /dev/null
+++ b/locales/Locale-itIT.lua
@@ -0,0 +1,4 @@
+local L = LibStub:GetLibrary("AceLocale-3.0"):NewLocale("Ovale", "itIT", false)
+if not L then return end
+
+--@localization(locale="itIT", format="lua_additive_table", same-key-is-true=true, handle-subnamespaces="concat")@
\ No newline at end of file
diff --git a/locales/Locale-koKR.lua b/locales/Locale-koKR.lua
new file mode 100644
index 0000000..be721e6
--- /dev/null
+++ b/locales/Locale-koKR.lua
@@ -0,0 +1,4 @@
+local L = LibStub:GetLibrary("AceLocale-3.0"):NewLocale("Ovale", "koKR", false)
+if not L then return end
+
+--@localization(locale="koKR", format="lua_additive_table", same-key-is-true=true, handle-subnamespaces="concat")@
\ No newline at end of file
diff --git a/locales/Locale-ptBR.lua b/locales/Locale-ptBR.lua
new file mode 100644
index 0000000..78f3bc1
--- /dev/null
+++ b/locales/Locale-ptBR.lua
@@ -0,0 +1,4 @@
+local L = LibStub:GetLibrary("AceLocale-3.0"):NewLocale("Ovale", "ptBR", false)
+if not L then return end
+
+--@localization(locale="ptBR", format="lua_additive_table", same-key-is-true=true, handle-subnamespaces="concat")@
\ No newline at end of file
diff --git a/locales/Locale-ruRU.lua b/locales/Locale-ruRU.lua
new file mode 100644
index 0000000..04f391e
--- /dev/null
+++ b/locales/Locale-ruRU.lua
@@ -0,0 +1,4 @@
+local L = LibStub:GetLibrary("AceLocale-3.0"):NewLocale("Ovale", "ruRU", false)
+if not L then return end
+
+--@localization(locale="ruRU", format="lua_additive_table", same-key-is-true=true, handle-subnamespaces="concat")@
\ No newline at end of file
diff --git a/locales/Locale-zhCN.lua b/locales/Locale-zhCN.lua
new file mode 100644
index 0000000..8959e04
--- /dev/null
+++ b/locales/Locale-zhCN.lua
@@ -0,0 +1,4 @@
+local L = LibStub:GetLibrary("AceLocale-3.0"):NewLocale("Ovale", "zhCN", false)
+if not L then return end
+
+--@localization(locale="zhCN", format="lua_additive_table", same-key-is-true=true, handle-subnamespaces="concat")@
\ No newline at end of file
diff --git a/locales/Locale-zhTW.lua b/locales/Locale-zhTW.lua
new file mode 100644
index 0000000..936c58e
--- /dev/null
+++ b/locales/Locale-zhTW.lua
@@ -0,0 +1,4 @@
+local L = LibStub:GetLibrary("AceLocale-3.0"):NewLocale("Ovale", "zhTW", false)
+if not L then return end
+
+--@localization(locale="zhTW", format="lua_additive_table", same-key-is-true=true, handle-subnamespaces="concat")@
\ No newline at end of file
diff --git a/locales/locales.xml b/locales/locales.xml
new file mode 100644
index 0000000..8e84785
--- /dev/null
+++ b/locales/locales.xml
@@ -0,0 +1,15 @@
+<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/ ..\FrameXML\UI.xsd">
+ <!-- Default locale -->
+ <Script file="Locale-frFR.lua" />
+
+ <!-- Translations -->
+ <Script file="Locale-deDE.lua" />
+ <Script file="Locale-enUS.lua" />
+ <Script file="Locale-esES.lua" />
+ <Script file="Locale-itIT.lua" />
+ <Script file="Locale-koKR.lua" />
+ <Script file="Locale-ptBR.lua" />
+ <Script file="Locale-ruRU.lua" />
+ <Script file="Locale-zhCN.lua" />
+ <Script file="Locale-zhTW.lua" />
+</Ui>