diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..4525d02
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,6 @@
+* text=auto eol=lf
+
+*.bat text eol=crlf
+
+*.zip -text
+*.png -text
\ No newline at end of file
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 461a996..aca5200 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -19,7 +19,7 @@ jobs:
- name: Setup Java and Maven Central
uses: actions/setup-java@v1
with:
- java-version: 11
+ java-version: 17
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 7fad423..3ecc6d2 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -18,10 +18,10 @@ jobs:
git config user.name "${{ github.event.head_commit.committer.name }}"
git config user.email "${{ github.event.head_commit.committer.email }}"
- - name: Setup Java 11
+ - name: Setup Java
uses: actions/setup-java@v1
with:
- java-version: 11
+ java-version: 17
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
diff --git a/README.md b/README.md
index 9987ab2..3ebcc86 100644
--- a/README.md
+++ b/README.md
@@ -1,14 +1,49 @@
+
+

+
# Stream-Pi Theme API
-
+*Free, Open-Source, Modular, Cross-Platform and Programmable Macro Pad*
+
+API for building custom themes for the Stream-Pi
+
+
+
+[](https://discord.gg/BExqGmk)
+[](https://matrix.to/#/!hTwUYZonUXThjkMhCD:matrix.org?via=matrix.org)
+[](https://www.patreon.com/streampi)
+
+### [Website](https://stream-pi.com)
+#### [Help us Translate!](https://github.com/stream-pi/theme-api/blob/master/i18n.md)
+
+
+
+## Bugs and Support
+
+If you found a bug in the Theme API, please report it by creating a [GitHub issue](https://github.com/stream-pi/theme-api/issues).
+
+You may also reach us via any of the following platforms:
+* [E-mail](mailto:contact@stream-pi.com)
+* [Matrix](https://matrix.to/#/!hTwUYZonUXThjkMhCD:matrix.org?via=matrix.org)
+* [Discord](https://discord.gg/BExqGmk)
+* [Twitter](https://twitter.com/stream_pi)
+
-API for building custom themes for the Stream-Pi.
+## License
-## Prerequisites
+This software is licensed to [GNU General Public License v3.0](https://github.com/stream-pi/client/blob/master/LICENSE).
+```
+Stream-Pi - Free, Open-Source, Modular, Cross-Platform and Programmable Macro Pad
+Copyright (C) 2019-2022 Debayan Sutradhar (rnayabed), Samuel Quiñones (SamuelQuinones)
-- Java >= 11
-- Maven >= 3.6.3
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+```
-## Quick Start
-Build locally by executing `mvn clean install` from the command line.
\ No newline at end of file
diff --git a/i18n.md b/i18n.md
new file mode 100644
index 0000000..da05e60
--- /dev/null
+++ b/i18n.md
@@ -0,0 +1,46 @@
+# Translation
+
+Clone this repository, create a new file `lang_.properties` in `src/main/resources/com/stream_pi/theme_api/i18n/lang/`.
+
+Example: `lang_en_IN.properties`
+
+You can get the list of valid [ISO locales from here](https://docs.oracle.com/cd/E13214_01/wli/docs92/xref/xqisocodes.html).
+
+You can use the [English pack][fallback-locale] as a reference and begin translating all the strings on the right-hand side of the `=` sign.
+
+**Do not modify the comments and formatting strings (`%s`).**
+
+When you are done, send a PR and it will be accepted.
+
+You may also send a PR with appropriate details if you want to improve an existing translation.
+
+
+### Supported Languages
+
+*Languages marked with `*` are community translations. Stream-Pi is not responsible for any malicious/incorrect translations in them. If you find any discrepancy, please report to the owners/core team immediately.*
+
+| Locale | Language |
+|-------------------------|-----------------------------------------------------|
+| [`en`][fallback-locale] | English (Fallback) |
+| [`bn_IN`][bn_IN] | 🇮🇳 Bengali - India (বাংলা - ভারত) |
+| [`de_DE`][de_DE] | 🇩🇪 German - Germany (Deutsch - Deutschland) * |
+| [`en_GB`][en_GB] | 🇬🇧 English - Great Britain |
+| [`en_IN`][en_IN] | 🇮🇳 English - India |
+| [`en_US`][en_US] | 🇺🇸 English - United States |
+| [`es_ES`][es_ES] | 🇪🇸 Spanish - Spain * |
+| [`fr`][fr] | 🇫🇷 French (Français) * |
+| [`hi`][hi] | 🇮🇳 Hindi (हिंदी) |
+| [`nl_NL`][nl_NL] | 🇳🇱 Dutch - Netherlands (Nederlands - Nederland) * |
+
+
+
+[fallback-locale]: https://github.com/stream-pi/theme-api/blob/master/src/main/resources/com/stream_pi/theme_api/i18n/lang_en.properties
+[bn_IN]: https://github.com/stream-pi/theme-api/blob/master/src/main/resources/com/stream_pi/theme_api/i18n/lang_bn_IN.properties
+[de_DE]: https://github.com/stream-pi/theme-api/blob/master/src/main/resources/com/stream_pi/theme_api/i18n/lang_de_DE.properties
+[en_GB]: https://github.com/stream-pi/theme-api/blob/master/src/main/resources/com/stream_pi/theme_api/i18n/lang_en_GB.properties
+[en_IN]: https://github.com/stream-pi/theme-api/blob/master/src/main/resources/com/stream_pi/theme_api/i18n/lang_en_IN.properties
+[en_US]: https://github.com/stream-pi/theme-api/blob/master/src/main/resources/com/stream_pi/theme_api/i18n/lang_en_US.properties
+[es_ES]: https://github.com/stream-pi/theme-api/blob/master/src/main/resources/com/stream_pi/theme_api/i18n/lang_es_ES.properties
+[fr]: https://github.com/stream-pi/theme-api/blob/master/src/main/resources/com/stream_pi/theme_api/i18n/lang_fr.properties
+[hi]: https://github.com/stream-pi/theme-api/blob/master/src/main/resources/com/stream_pi/theme_api/i18n/lang_hi.properties
+[nl_NL]: https://github.com/stream-pi/client/blob/master/src/main/resources/com/stream_pi/client/i18n/lang_nl_NL.properties
diff --git a/pom.xml b/pom.xml
index fc1ba48..2ff53bc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,4 +1,18 @@
+
+
@@ -6,7 +20,7 @@
com.stream-pi
theme-api
- 1.0.0-SNAPSHOT
+ 2.0.0-SNAPSHOT
Stream-Pi Theme API
Stream-Pi Theme API
@@ -14,19 +28,18 @@
UTF-8
- 11
+ 17
- 1.0.0-SNAPSHOT
+ 2.0.0-SNAPSHOT
true
- 2.2.1
- 3.1.0
- 1.6
- 3.1.0
- 3.8.1
- 2.2.1
- 1.6.7
+ 3.2.1
+ 3.4.0
+ 3.0.1
+ 3.2.2
+ 3.10.1
+ 1.6.13
diff --git a/src/main/java/com/stream_pi/theme_api/Theme.java b/src/main/java/com/stream_pi/theme_api/Theme.java
index f5d3fa1..84a1ef7 100644
--- a/src/main/java/com/stream_pi/theme_api/Theme.java
+++ b/src/main/java/com/stream_pi/theme_api/Theme.java
@@ -1,15 +1,20 @@
/*
-Theme.java
-
-Contributor(s): Debayan Sutradhar (@rnayabed)
-
-Check 'Theme Standard.md' if you want to understand the hierarchy.
-This reads a theme folder.
+ * Stream-Pi - Free, Open-Source, Modular, Cross-Platform and Programmable Macro Pad
+ * Copyright (C) 2019-2022 Debayan Sutradhar (rnayabed), Samuel Quiñones (SamuelQuinones)
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
*/
package com.stream_pi.theme_api;
-
+import com.stream_pi.theme_api.i18n.I18N;
import com.stream_pi.util.exception.MinorException;
import com.stream_pi.util.version.Version;
import com.stream_pi.util.xmlconfighelper.XMLConfigHelper;
@@ -26,27 +31,26 @@
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
-
public class Theme
{
-
private String fullName, shortName, author, website;
private Version version, themePlatformVersion;
private final File path;
- private Document document;
+ private final Document document;
- public Theme(File path) throws MinorException {
+ public Theme(File path) throws MinorException
+ {
this.path = path;
if(!path.isDirectory())
{
- throw new MinorException("Theme", "Theme path "+path.getName()+" is not a folder.");
+ throw new MinorException(I18N.getString("Theme.themePathIsNotAFolder", path.getAbsolutePath()));
}
File themeFile = new File(path.getAbsolutePath() + "/theme.xml");
if(!themeFile.isFile())
{
- throw new MinorException("Theme", "Theme folder "+path.getName()+" has no theme.xml");
+ throw new MinorException(I18N.getString("Theme.themeFolderHasNoThemeXML", path.getAbsolutePath()));
}
@@ -59,14 +63,13 @@ public Theme(File path) throws MinorException {
catch (Exception e)
{
e.printStackTrace();
- throw new MinorException("Theme", "ConfigurationException occurred for theme folder "+path.getName());
+ throw new MinorException(I18N.getString("Theme.themeXMLParseFailed", themeFile.getAbsolutePath()));
}
loadUpThemeXMLContents();
}
private List stylesheets = null;
- private List fonts = null;
public Version getThemePlatformVersion()
{
@@ -84,7 +87,7 @@ private void loadUpThemeXMLContents() throws MinorException
}
catch (Exception e)
{
- throw new MinorException("Invalid theme-platform-version ("+fullName+")");
+ throw new MinorException(I18N.getString("Theme.invalidThemePlatformVersion", path.getAbsolutePath()));
}
Node infoElement = document.getElementsByTagName("info").item(0);
@@ -99,7 +102,7 @@ private void loadUpThemeXMLContents() throws MinorException
}
catch (Exception e)
{
- throw new MinorException("Invalid theme-version ("+fullName+")");
+ throw new MinorException(I18N.getString("Theme.invalidVersion", path.getAbsolutePath()));
}
//theme
@@ -125,7 +128,7 @@ private void loadUpThemeXMLContents() throws MinorException
if(n.getNodeType() != Node.ELEMENT_NODE)
continue;
- if(n.getNodeName() != "stylesheet")
+ if(!n.getNodeName().equals("stylesheet"))
continue;
Element stylesheetElement = (Element) n;
@@ -135,52 +138,17 @@ private void loadUpThemeXMLContents() throws MinorException
}
}
-
- if(XMLConfigHelper.doesElementExist(themeElement, "fonts"))
- {
- Element fontsElement = (Element) themeElement.getElementsByTagName("fonts").item(0);
-
-
- NodeList ss = fontsElement.getChildNodes();
- if(ss.getLength() > 0)
- {
- fonts = new ArrayList<>();
-
- for(int i = 0;i getStylesheets()
return stylesheets;
}
- public List getFonts()
- {
- return fonts;
- }
-
public String getFullName()
{
return fullName;
diff --git a/src/main/java/com/stream_pi/theme_api/ThemeAPI.java b/src/main/java/com/stream_pi/theme_api/ThemeAPI.java
new file mode 100644
index 0000000..5f2b762
--- /dev/null
+++ b/src/main/java/com/stream_pi/theme_api/ThemeAPI.java
@@ -0,0 +1,30 @@
+/*
+ * Stream-Pi - Free, Open-Source, Modular, Cross-Platform and Programmable Macro Pad
+ * Copyright (C) 2019-2022 Debayan Sutradhar (rnayabed), Samuel Quiñones (SamuelQuinones)
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+package com.stream_pi.theme_api;
+
+import com.stream_pi.theme_api.i18n.I18N;
+import com.stream_pi.util.version.Version;
+
+import java.util.Locale;
+
+public class ThemeAPI
+{
+ public static final Version VERSION = new Version(2,0,0);
+
+ public static void initI18n(Locale locale)
+ {
+ I18N.init(locale);
+ }
+}
diff --git a/src/main/java/com/stream_pi/theme_api/Themes.java b/src/main/java/com/stream_pi/theme_api/Themes.java
index 17983c5..fcd04d4 100644
--- a/src/main/java/com/stream_pi/theme_api/Themes.java
+++ b/src/main/java/com/stream_pi/theme_api/Themes.java
@@ -1,6 +1,21 @@
+/*
+ * Stream-Pi - Free, Open-Source, Modular, Cross-Platform and Programmable Macro Pad
+ * Copyright (C) 2019-2022 Debayan Sutradhar (rnayabed), Samuel Quiñones (SamuelQuinones)
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
package com.stream_pi.theme_api;
+import com.stream_pi.theme_api.i18n.I18N;
import com.stream_pi.util.exception.MinorException;
import com.stream_pi.util.exception.SevereException;
import com.stream_pi.util.version.Version;
@@ -11,7 +26,8 @@
import java.util.List;
import java.util.logging.Logger;
-public class Themes {
+public class Themes
+{
private final List themeList;
private final ArrayList errors;
private boolean isBadThemeTheCurrentOne = false;
@@ -21,15 +37,14 @@ public class Themes {
private String themePath;
private String defaultThemePath;
private String defaultThemeName;
- private Version minThemeSupportPlatform;
private boolean isDefaultThemePresent = false;
- public Themes(String defaultThemePath, String themePath, String defaultThemeName, Version minThemeSupportPlatform) throws SevereException {
+ public Themes(String defaultThemePath, String themePath, String defaultThemeName) throws SevereException
+ {
this.themePath = themePath;
this.defaultThemePath = defaultThemePath;
this.defaultThemeName = defaultThemeName;
- this.minThemeSupportPlatform = minThemeSupportPlatform;
themeList = new ArrayList<>();
errors = new ArrayList<>();
@@ -48,37 +63,37 @@ public boolean isDefaultThemePresent()
return isDefaultThemePresent;
}
- private ArrayList shortDir = null;
+ private ArrayList shortDir;
public void loadThemes(String themePath) throws SevereException
{
File themeFolder = new File(themePath);
if(!themeFolder.isDirectory())
{
- throw new SevereException("Themes","Theme folder doesn't exist! Cant continue.");
+ throw new SevereException(I18N.getString("Themes.themeFolderNotADirectoryOrDoesNotExist", themeFolder.getAbsolutePath()));
}
File[] themeFolders = themeFolder.listFiles();
if(themeFolders == null)
{
- throw new SevereException("Themes","themefolders returned null. Cant continue!");
+ throw new SevereException(I18N.getString("Themes.themeFoldersIsNull", themeFolder.getAbsolutePath()));
}
for(File eachFolder : themeFolders)
{
if(eachFolder.isDirectory())
{
- File themeXML = new File(eachFolder.getAbsolutePath()+"/theme.xml");
+ File themeXML = new File(eachFolder.getAbsolutePath() + File.separator + "theme.xml");
if(themeXML.exists() && themeXML.isFile())
{
try
{
Theme t = new Theme(eachFolder);
- if (minThemeSupportPlatform.isBiggerThan(t.getThemePlatformVersion()))
+ if (ThemeAPI.VERSION.getMajor() != t.getThemePlatformVersion().getMajor())
{
- throw new MinorException("Theme version doesn't match minimum theme support level ("+ minThemeSupportPlatform + ") ("+t.getFullName()+")");
+ throw new MinorException(I18N.getString("Themes.unsupportedTheme", t.getFullName(), ThemeAPI.VERSION.getText()));
}
if(!isDefaultThemePresent())
diff --git a/src/main/java/com/stream_pi/theme_api/i18n/I18N.java b/src/main/java/com/stream_pi/theme_api/i18n/I18N.java
new file mode 100644
index 0000000..5e692dc
--- /dev/null
+++ b/src/main/java/com/stream_pi/theme_api/i18n/I18N.java
@@ -0,0 +1,57 @@
+/*
+ * Stream-Pi - Free, Open-Source, Modular, Cross-Platform and Programmable Macro Pad
+ * Copyright (C) 2019-2022 Debayan Sutradhar (rnayabed), Samuel Quiñones (SamuelQuinones)
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+package com.stream_pi.theme_api.i18n;
+
+import java.util.Locale;
+import java.util.ResourceBundle;
+
+public class I18N
+{
+ public static ResourceBundle RESOURCE_BUNDLE;
+ private static ResourceBundle BASE_RESOURCE_BUNDLE;
+
+ public static void init(Locale locale)
+ {
+ RESOURCE_BUNDLE = ResourceBundle.getBundle(I18N.class.getPackageName()+".lang", locale);
+ }
+
+ public static String getString(String key, Object... args)
+ {
+ String result;
+
+ if (RESOURCE_BUNDLE.containsKey(key))
+ {
+ result = RESOURCE_BUNDLE.getString(key);
+ }
+ else
+ {
+ if (BASE_RESOURCE_BUNDLE == null)
+ {
+ BASE_RESOURCE_BUNDLE = ResourceBundle.getBundle(I18N.class.getPackageName()+".lang", new Locale("en"));
+ }
+
+ result = BASE_RESOURCE_BUNDLE.getString(key);
+ }
+
+ if (args.length == 0)
+ {
+ return result;
+ }
+ else
+ {
+ return String.format(result, args);
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/module-info.java b/src/main/java/module-info.java
index e59105c..57247ce 100644
--- a/src/main/java/module-info.java
+++ b/src/main/java/module-info.java
@@ -1,7 +1,22 @@
-module com.stream_pi.theme_api {
+/*
+ * Stream-Pi - Free, Open-Source, Modular, Cross-Platform and Programmable Macro Pad
+ * Copyright (C) 2019-2022 Debayan Sutradhar (rnayabed), Samuel Quiñones (SamuelQuinones)
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+module com.stream_pi.theme_api
+{
requires transitive java.logging;
requires transitive java.xml;
-
requires transitive com.stream_pi.util;
+
exports com.stream_pi.theme_api;
}
\ No newline at end of file
diff --git a/src/main/resources/com/stream_pi/theme_api/i18n/lang_bn_IN.properties b/src/main/resources/com/stream_pi/theme_api/i18n/lang_bn_IN.properties
new file mode 100644
index 0000000..a3cf272
--- /dev/null
+++ b/src/main/resources/com/stream_pi/theme_api/i18n/lang_bn_IN.properties
@@ -0,0 +1,28 @@
+#
+# Stream-Pi - Free, Open-Source, Modular, Cross-Platform and Programmable Macro Pad
+# Copyright (C) 2019-2022 Debayan Sutradhar (rnayabed), Samuel Quiñones (SamuelQuinones)
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+
+# Theme
+
+Theme.themePathIsNotAFolder = থিম পাথ %s একটি ফোল্ডার নোই।
+Theme.themeFolderHasNoThemeXML = থিম ফোল্ডার এ কোনো theme.xml ফাইল নেই।
+Theme.themeXMLParseFailed = %s এর থীম কনফিগারেশন কে পার্শে করা গেলো না।
+Theme.invalidThemePlatformVersion = থীম %s এর theme-platform-version অবৈধ।
+Theme.invalidVersion = থীম %s এর ভার্সন অবৈধ।
+Theme.noStyleSheetsFound = থীম (%s) %s এর মধ্যে কোনো স্টিলশীট পাব যায়নি। অন্তত একটা প্রয়েজন আছে।
+
+
+# Themes
+Themes.themeFolderNotADirectoryOrDoesNotExist = থিম ফোল্ডার (%s) একটা ফোল্ডার নোই অথবা ওটা বিদ্যমান এ নেই।
+Themes.themeFoldersIsNull = থীম ফোল্ডার (%s) এর ফাইল null আছে।
+Themes.unsupportedTheme = থিম (%s) এর ভার্সন অন্তত মিনিমাম থীম প্লাটফর্ম ভার্সন (%s) হবা উচিত।
diff --git a/src/main/resources/com/stream_pi/theme_api/i18n/lang_de_DE.properties b/src/main/resources/com/stream_pi/theme_api/i18n/lang_de_DE.properties
new file mode 100644
index 0000000..204abad
--- /dev/null
+++ b/src/main/resources/com/stream_pi/theme_api/i18n/lang_de_DE.properties
@@ -0,0 +1,29 @@
+#
+# Stream-Pi - Free, Open-Source, Modular, Cross-Platform and Programmable Macro Pad
+# Copyright (C) 2019-2022 Debayan Sutradhar (rnayabed), Samuel Quiñones (SamuelQuinones)
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+
+# Translated By Capitan Pugnoxi#9933 (Discord)
+
+# Theme
+Theme.themePathIsNotAFolder = Der Pfad %s ist kein Ordner.
+Theme.themeFolderHasNoThemeXML = Der Ordner %s hat keine theme.xml
+Theme.themeXMLParseFailed = Konnte die Themen-Konfiguration in %s nicht analysieren.
+Theme.invalidThemePlatformVersion = Dein Theme in %s ist zu alt für deine Platform.
+Theme.invalidVersion = Theme in %s ist ungültig.
+Theme.noStyleSheetsFound = Keine Stylesheet in %s (%s) für das Thema gefunden. Mindestens eins ist erforderlich.
+
+
+# Themes
+Themes.themeFolderNotADirectoryOrDoesNotExist = Theme Ordner in (%s) ist kein Ordner oder existiert nicht.
+Themes.themeFoldersIsNull = Im Thema Ordner (%s) sind die Dateien ungültig.
+Themes.unsupportedTheme = Theme %s erfüllt nicht die Mindestversion von Stream-Pi (%s).
diff --git a/src/main/resources/com/stream_pi/theme_api/i18n/lang_en.properties b/src/main/resources/com/stream_pi/theme_api/i18n/lang_en.properties
new file mode 100644
index 0000000..5e4d077
--- /dev/null
+++ b/src/main/resources/com/stream_pi/theme_api/i18n/lang_en.properties
@@ -0,0 +1,28 @@
+#
+# Stream-Pi - Free, Open-Source, Modular, Cross-Platform and Programmable Macro Pad
+# Copyright (C) 2019-2022 Debayan Sutradhar (rnayabed), Samuel Quiñones (SamuelQuinones)
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+
+# Theme
+
+Theme.themePathIsNotAFolder = Theme path %s is not a folder.
+Theme.themeFolderHasNoThemeXML = Theme folder %s has no theme.xml
+Theme.themeXMLParseFailed = Failed to parse theme configuration at %s.
+Theme.invalidThemePlatformVersion = Invalid theme-platform-version in theme at %s.
+Theme.invalidVersion = Invalid version in theme at %s.
+Theme.noStyleSheetsFound = No stylesheets found at theme %s (%s). At least one is required.
+
+
+# Themes
+Themes.themeFolderNotADirectoryOrDoesNotExist = Theme folder (%s) is not a directory or does not exist.
+Themes.themeFoldersIsNull = Theme folder (%s) files are null.
+Themes.unsupportedTheme = Theme %s does not match minimum theme platform version required (%s).
diff --git a/src/main/resources/com/stream_pi/theme_api/i18n/lang_en_GB.properties b/src/main/resources/com/stream_pi/theme_api/i18n/lang_en_GB.properties
new file mode 100644
index 0000000..5e4d077
--- /dev/null
+++ b/src/main/resources/com/stream_pi/theme_api/i18n/lang_en_GB.properties
@@ -0,0 +1,28 @@
+#
+# Stream-Pi - Free, Open-Source, Modular, Cross-Platform and Programmable Macro Pad
+# Copyright (C) 2019-2022 Debayan Sutradhar (rnayabed), Samuel Quiñones (SamuelQuinones)
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+
+# Theme
+
+Theme.themePathIsNotAFolder = Theme path %s is not a folder.
+Theme.themeFolderHasNoThemeXML = Theme folder %s has no theme.xml
+Theme.themeXMLParseFailed = Failed to parse theme configuration at %s.
+Theme.invalidThemePlatformVersion = Invalid theme-platform-version in theme at %s.
+Theme.invalidVersion = Invalid version in theme at %s.
+Theme.noStyleSheetsFound = No stylesheets found at theme %s (%s). At least one is required.
+
+
+# Themes
+Themes.themeFolderNotADirectoryOrDoesNotExist = Theme folder (%s) is not a directory or does not exist.
+Themes.themeFoldersIsNull = Theme folder (%s) files are null.
+Themes.unsupportedTheme = Theme %s does not match minimum theme platform version required (%s).
diff --git a/src/main/resources/com/stream_pi/theme_api/i18n/lang_en_IN.properties b/src/main/resources/com/stream_pi/theme_api/i18n/lang_en_IN.properties
new file mode 100644
index 0000000..5e4d077
--- /dev/null
+++ b/src/main/resources/com/stream_pi/theme_api/i18n/lang_en_IN.properties
@@ -0,0 +1,28 @@
+#
+# Stream-Pi - Free, Open-Source, Modular, Cross-Platform and Programmable Macro Pad
+# Copyright (C) 2019-2022 Debayan Sutradhar (rnayabed), Samuel Quiñones (SamuelQuinones)
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+
+# Theme
+
+Theme.themePathIsNotAFolder = Theme path %s is not a folder.
+Theme.themeFolderHasNoThemeXML = Theme folder %s has no theme.xml
+Theme.themeXMLParseFailed = Failed to parse theme configuration at %s.
+Theme.invalidThemePlatformVersion = Invalid theme-platform-version in theme at %s.
+Theme.invalidVersion = Invalid version in theme at %s.
+Theme.noStyleSheetsFound = No stylesheets found at theme %s (%s). At least one is required.
+
+
+# Themes
+Themes.themeFolderNotADirectoryOrDoesNotExist = Theme folder (%s) is not a directory or does not exist.
+Themes.themeFoldersIsNull = Theme folder (%s) files are null.
+Themes.unsupportedTheme = Theme %s does not match minimum theme platform version required (%s).
diff --git a/src/main/resources/com/stream_pi/theme_api/i18n/lang_en_US.properties b/src/main/resources/com/stream_pi/theme_api/i18n/lang_en_US.properties
new file mode 100644
index 0000000..5e4d077
--- /dev/null
+++ b/src/main/resources/com/stream_pi/theme_api/i18n/lang_en_US.properties
@@ -0,0 +1,28 @@
+#
+# Stream-Pi - Free, Open-Source, Modular, Cross-Platform and Programmable Macro Pad
+# Copyright (C) 2019-2022 Debayan Sutradhar (rnayabed), Samuel Quiñones (SamuelQuinones)
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+
+# Theme
+
+Theme.themePathIsNotAFolder = Theme path %s is not a folder.
+Theme.themeFolderHasNoThemeXML = Theme folder %s has no theme.xml
+Theme.themeXMLParseFailed = Failed to parse theme configuration at %s.
+Theme.invalidThemePlatformVersion = Invalid theme-platform-version in theme at %s.
+Theme.invalidVersion = Invalid version in theme at %s.
+Theme.noStyleSheetsFound = No stylesheets found at theme %s (%s). At least one is required.
+
+
+# Themes
+Themes.themeFolderNotADirectoryOrDoesNotExist = Theme folder (%s) is not a directory or does not exist.
+Themes.themeFoldersIsNull = Theme folder (%s) files are null.
+Themes.unsupportedTheme = Theme %s does not match minimum theme platform version required (%s).
diff --git a/src/main/resources/com/stream_pi/theme_api/i18n/lang_es_ES.properties b/src/main/resources/com/stream_pi/theme_api/i18n/lang_es_ES.properties
new file mode 100644
index 0000000..c8e5834
--- /dev/null
+++ b/src/main/resources/com/stream_pi/theme_api/i18n/lang_es_ES.properties
@@ -0,0 +1,30 @@
+#
+# Stream-Pi - Free, Open-Source, Modular, Cross-Platform and Programmable Macro Pad
+# Copyright (C) 2019-2022 Debayan Sutradhar (rnayabed), Samuel Quiñones (SamuelQuinones)
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+
+# Translated By Capitan Xeon#3776 (Discord)
+
+# Theme
+
+Theme.themePathIsNotAFolder = La ruta %s no es una carpeta.
+Theme.themeFolderHasNoThemeXML = La carpeta %s no contiene un archivo theme.xml.
+Theme.themeXMLParseFailed = Error al analizar la configuración del tema en %s.
+Theme.invalidThemePlatformVersion = Valor "theme-platform-version" inválido en el tema en %s.
+Theme.invalidVersion = Versión inválida en el tema en %s.
+Theme.noStyleSheetsFound = No se ha encontrado ninguna hoja de estilo en el tema %s (%s). Se requiere al menos una.
+
+
+# Themes
+Themes.themeFolderNotADirectoryOrDoesNotExist = La carpeta del tema (%s) no es un directorio o no existe.
+Themes.themeFoldersIsNull = Los archivos en la carpeta del tema (%s) son nulos.
+Themes.unsupportedTheme = El tema %s no cumple con la versión mínima requerida por la plataforma de temas (%s).
\ No newline at end of file
diff --git a/src/main/resources/com/stream_pi/theme_api/i18n/lang_fr.properties b/src/main/resources/com/stream_pi/theme_api/i18n/lang_fr.properties
new file mode 100644
index 0000000..8358207
--- /dev/null
+++ b/src/main/resources/com/stream_pi/theme_api/i18n/lang_fr.properties
@@ -0,0 +1,28 @@
+#
+# Stream-Pi - Free, Open-Source, Modular, Cross-Platform and Programmable Macro Pad
+# Copyright (C) 2019-2022 Debayan Sutradhar (rnayabed), Samuel Quiñones (SamuelQuinones)
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+
+# Theme
+
+Theme.themePathIsNotAFolder = Le chemin du thème %s n'est pas un dossier.
+Theme.themeFolderHasNoThemeXML = Le dossier du thème %s n'a pas de fichier theme.xml
+Theme.themeXMLParseFailed = Échec de l'analyse de la configuration du thème situé à %s.
+Theme.invalidThemePlatformVersion = theme-plateform-version invalide dans le thème situé à %s.
+Theme.invalidVersion = Version invalide du thème situé à %s.
+Theme.noStyleSheetsFound = Aucune feuille de style trouvée pour le thème %s (%s). Au moins une feuille de style est requise.
+
+
+# Themes
+Themes.themeFolderNotADirectoryOrDoesNotExist = Le dossier du thème (%s) n'est pas un répertoire ou n'existe pas.
+Themes.themeFoldersIsNull = Les fichiers du dossier du thème (%s) sont invalides (null).
+Themes.unsupportedTheme = Les exigences du thème %s concernant la version de la plate-forme ne sont pas atteintes (%s).
diff --git a/src/main/resources/com/stream_pi/theme_api/i18n/lang_hi.properties b/src/main/resources/com/stream_pi/theme_api/i18n/lang_hi.properties
new file mode 100644
index 0000000..25b07bc
--- /dev/null
+++ b/src/main/resources/com/stream_pi/theme_api/i18n/lang_hi.properties
@@ -0,0 +1,28 @@
+#
+# Stream-Pi - Free, Open-Source, Modular, Cross-Platform and Programmable Macro Pad
+# Copyright (C) 2019-2022 Debayan Sutradhar (rnayabed), Samuel Quiñones (SamuelQuinones)
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+
+# Theme
+
+Theme.themePathIsNotAFolder = थीम पाथ %s फोल्डर नहीं है।
+Theme.themeFolderHasNoThemeXML = थीम फोल्डर %s में theme.xml फाइल मौजूद नहीं है।
+Theme.themeXMLParseFailed = %s के थीम कॉन्फ़िगरेशन को पार्स नहीं किया जा सका।
+Theme.invalidThemePlatformVersion = थीम %s का theme-platform-version अमान्य है।
+Theme.invalidVersion = थीम %s का वर्शन अमान्य है।
+Theme.noStyleSheetsFound = थीम %s (%s) में कोई स्टाइलशीट नहीं पाया गया। कम से कम एक मौजूद होना आवश्यक है।
+
+
+# Themes
+Themes.themeFolderNotADirectoryOrDoesNotExist = थीम फोल्डर (%s) एक फोल्डर नहीं है या फिर मौजूद ही नहीं है।
+Themes.themeFoldersIsNull = थीम फोल्डर (%s) के फाइल null है।
+Themes.unsupportedTheme = थीम (%s) का वर्शन काम से काम मिनिमम थीम प्लेटफार्म वर्शन (%s) होना चाहिए।
diff --git a/src/main/resources/com/stream_pi/theme_api/i18n/lang_nl_NL.properties b/src/main/resources/com/stream_pi/theme_api/i18n/lang_nl_NL.properties
new file mode 100644
index 0000000..fedfade
--- /dev/null
+++ b/src/main/resources/com/stream_pi/theme_api/i18n/lang_nl_NL.properties
@@ -0,0 +1,28 @@
+#
+# Stream-Pi - Free, Open-Source, Modular, Cross-Platform and Programmable Macro Pad
+# Copyright (C) 2019-2022 Debayan Sutradhar (rnayabed), Samuel Quiñones (SamuelQuinones)
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+
+# Theme
+
+Theme.themePathIsNotAFolder = Het opgegeven themapad %s is geen map.
+Theme.themeFolderHasNoThemeXML = Het opgegeven themapad %s heeft geen theme.xml
+Theme.themeXMLParseFailed = Kon de themaconfiguratie niet ontleden op %s.
+Theme.invalidThemePlatformVersion = Ongeldige thema-platform-versie in thema op %s.
+Theme.invalidVersion = Ongeldige versie in thema op %s.
+Theme.noStyleSheetsFound = Er zijn geen stylesheets gevonden in het thema %s (%s). Er is er minstens één nodig.
+
+
+# Themes
+Themes.themeFolderNotADirectoryOrDoesNotExist = Themamap (%s) is geen map of bestaat niet.
+Themes.themeFoldersIsNull = Themamap (%s) bestanden zijn null.
+Themes.unsupportedTheme = Thema %s komt niet overeen met de minimaal vereiste versie van het themaplatform (%s).