diff --git a/boot.php b/boot.php
index d5d74d2..4a5ba62 100644
--- a/boot.php
+++ b/boot.php
@@ -3,12 +3,8 @@
// Language passed via $_GET['l']
$currentLanguage = 'en';
-// read the files from language directory
-$acceptedLanguages = array();
-$files = glob('languages/*.json');
-foreach ($files as $file) {
- array_push($acceptedLanguages, basename($file, ".json"));
-}
+//
+$acceptedLanguages = array('en','es','de','ru');
if (isset($_GET['l'])) {
if (in_array($_GET['l'], $acceptedLanguages)) {
diff --git a/config.php b/config.php
index 64a17d5..67e1fd0 100644
--- a/config.php
+++ b/config.php
@@ -7,11 +7,11 @@
define('PATH_AUTHORS', PATH_METADATA.'authors'.DS);
define('CHARSET', 'UTF-8');
-#define('DOMAIN', 'http://localhost:8000');
-#define('CDN', 'http://localhost:8000/metadata/items/');
+define('DOMAIN', 'http://localhost:8000');
+define('CDN', 'http://localhost:8000/metadata/items/');
-define('DOMAIN', 'https://plugins.bludit.com');
-define('CDN', 'https://rawgit.com/bludit/plugins-repository/master/');
+#define('DOMAIN', 'https://plugins.bludit.com');
+#define('CDN', 'https://rawgit.com/bludit/plugins-repository/master/');
define('SCREENSHOT_DEFAULT', 'https://rawgit.com/bludit/plugins-repository/master/templates/screenshot.png');
diff --git a/functions.php b/functions.php
index 8dbe783..41359db 100644
--- a/functions.php
+++ b/functions.php
@@ -18,6 +18,7 @@ function buildItem($data, $key) {
global $currentLanguage;
global $_topbar;
+ $data['translated'] = true;
$data['key'] = $key;
$data['screenshoot_url'] = CDN.'items/'.$data['key'].'/screenshot.png';
$data['screenshoot_twitter_url'] = CDN.'items/'.$data['key'].'/screenshot.png';
@@ -25,7 +26,10 @@ function buildItem($data, $key) {
$data['permalink'] = rtrim($_topbar['website'],'/').'/'.ITEM_TYPE.'/'.$key;
if (!empty($data['description_'.$currentLanguage])) {
$data['description'] = $data['description_'.$currentLanguage];
+ } else {
+ $data['translated'] = false;
}
+
if (!empty($data['features_'.$currentLanguage])) {
$data['features'] = $data['features_'.$currentLanguage];
}
diff --git a/html/item.php b/html/item.php
index 97a8f0c..5acaae3 100644
--- a/html/item.php
+++ b/html/item.php
@@ -6,6 +6,10 @@
+
+
+
+
diff --git a/languages/de.json b/languages/de.json
index 05d7b63..984ccff 100644
--- a/languages/de.json
+++ b/languages/de.json
@@ -29,5 +29,6 @@
"download-for-bludit-v2": "Download für Bludit v2.x",
"download-for-bludit-v3": "Download für Bludit v3.x",
"support": "Support",
- "for-more-information-or-extra": "Weitere Informationen oder zusätzliche Konfigurationen finden Sie auf der Website des Entwicklers."
+ "for-more-information-or-extra": "Weitere Informationen oder zusätzliche Konfigurationen finden Sie auf der Website des Entwicklers.",
+ "this-plugin-has-not-yet-been-translated-into": "Dieses Plugin ist noch nicht nach Deutschland übersetzt worden. Helfen Sie uns, es zu übersetzen."
}
\ No newline at end of file
diff --git a/languages/en.json b/languages/en.json
index 6642b3c..c1aefd6 100644
--- a/languages/en.json
+++ b/languages/en.json
@@ -29,5 +29,6 @@
"download-for-bludit-v2": "Download for Bludit v2.x",
"download-for-bludit-v3": "Download for Bludit v3.x",
"support": "Support",
- "for-more-information-or-extra": "For more information or extra configurations, visit the developer's site."
+ "for-more-information-or-extra": "For more information or extra configurations, visit the developer's site.",
+ "this-plugin-has-not-yet-been-translated-into": "This plugin has not yet been translated into English. Help us to translate it."
}
\ No newline at end of file
diff --git a/languages/es.json b/languages/es.json
index 1b9f340..d004c93 100644
--- a/languages/es.json
+++ b/languages/es.json
@@ -29,5 +29,6 @@
"download-for-bludit-v2": "Download for Bludit v2.x",
"download-for-bludit-v3": "Download for Bludit v3.x",
"support": "Support",
- "for-more-information-or-extra": "For more information or extra configurations, visit the developer's site."
+ "for-more-information-or-extra": "For more information or extra configurations, visit the developer's site.",
+ "this-plugin-has-not-yet-been-translated-into": "Este plugin aún no ha sido traducido al Español. Ayúdanos a traducirlo."
}
\ No newline at end of file
diff --git a/languages/it.json b/languages/it.json
deleted file mode 100644
index b4028f0..0000000
--- a/languages/it.json
+++ /dev/null
@@ -1,33 +0,0 @@
-{
- "head-title": "Plugin - Bludit",
- "head-description": "Estendi le funzionalità di Bludit con degli eccezionali plugin. Social network, editor HTML, personalizzazione CSS, feed RSS , mappa del sito, Open Graph, Twitter Cards, e molto altro ancora.",
- "little-description-paragraph1": "Estendi le funzionalità di Bludit con dei plugin eccezionali",
- "add-new-plugin": "Aggiungi nuovo plugin",
-
- "demo": "Demo",
- "documentation": "Documentazione",
- "themes": "Temi",
- "plugins": "Plugin",
- "donations": "Donazioni",
- "donate": "Dona",
- "download": "Scarica",
- "search": "Cerca",
- "live-demo": "Demo Live ",
- "free-download": "Download gratuito",
- "more-information": "Maggiori informazioni",
- "made-by": "Creato da",
- "support-forum": "Forum di supporto ",
- "support-chat": "Chat di supporto",
- "description": "Descrizione",
- "features": "Caratteristiche",
- "last-update": "Ultimo aggiornamento",
- "author": "Autore",
- "buy": "Acquista",
- "buy-from": "Buy from",
- "version": "Versione",
-
- "download-for-bludit-v2": "Download for Bludit v2.x",
- "download-for-bludit-v3": "Download for Bludit v3.x",
- "support": "Support",
- "for-more-information-or-extra": "For more information or extra configurations, visit the developer's site."
-}
\ No newline at end of file
diff --git a/languages/ru.json b/languages/ru.json
index f1fb1f4..bf8df6b 100644
--- a/languages/ru.json
+++ b/languages/ru.json
@@ -29,5 +29,6 @@
"download-for-bludit-v2": "Загрузить для Bludit версий 2.x",
"download-for-bludit-v3": "Загрузить для Bludit версий 3.x",
"support": "Поддержка",
- "for-more-information-or-extra": "Для получения дополнительной информации о плагине или для помощи в конфигурации плагина мы рекомендуем посетить сайт разработчика."
+ "for-more-information-or-extra": "Для получения дополнительной информации о плагине или для помощи в конфигурации плагина мы рекомендуем посетить сайт разработчика.",
+ "this-plugin-has-not-yet-been-translated-into": "Этот плагин еще не переведен на русский язык. Помогите нам перевести его."
}
\ No newline at end of file
diff --git a/metadata b/metadata
index d1c5b13..8c737fd 160000
--- a/metadata
+++ b/metadata
@@ -1 +1 @@
-Subproject commit d1c5b132f6f2f6a6e66e7ec677faf25b23362998
+Subproject commit 8c737fdbd07916591f5f8a9a6b0b834763381fc2