Replace planet with krynn
authorDylan Thiedeke <dylan@thiedeke.com.au>
Tue, 7 Jul 2015 00:46:09 +0000 (10:46 +1000)
committerDylan Thiedeke <dylan@thiedeke.com.au>
Tue, 7 Jul 2015 00:46:09 +0000 (10:46 +1000)
30 files changed:
krynn/krynn.css-e [new file with mode: 0755]
krynn/krynn.php
krynn/krynn.php-e [new file with mode: 0755]
krynn/lang/C/messages.po
krynn/lang/C/messages.po-e [new file with mode: 0644]
krynn/lang/ca/strings.php
krynn/lang/ca/strings.php-e [new file with mode: 0644]
krynn/lang/cs/messages.po
krynn/lang/cs/messages.po-e [new file with mode: 0644]
krynn/lang/cs/strings.php
krynn/lang/cs/strings.php-e [new file with mode: 0644]
krynn/lang/de/messages.po
krynn/lang/de/messages.po-e [new file with mode: 0644]
krynn/lang/de/strings.php-e [new file with mode: 0644]
krynn/lang/eo/strings.php-e [new file with mode: 0644]
krynn/lang/es/strings.php-e [new file with mode: 0644]
krynn/lang/fr/strings.php-e [new file with mode: 0644]
krynn/lang/is/strings.php-e [new file with mode: 0644]
krynn/lang/it/messages.po
krynn/lang/it/messages.po-e [new file with mode: 0644]
krynn/lang/it/strings.php-e [new file with mode: 0644]
krynn/lang/nb-no/strings.php-e [new file with mode: 0644]
krynn/lang/pl/strings.php-e [new file with mode: 0644]
krynn/lang/pt-br/strings.php-e [new file with mode: 0644]
krynn/lang/ro/messages.po
krynn/lang/ro/messages.po-e [new file with mode: 0644]
krynn/lang/ro/strings.php-e [new file with mode: 0644]
krynn/lang/ru/strings.php-e [new file with mode: 0644]
krynn/lang/sv/strings.php-e [new file with mode: 0644]
krynn/lang/zh-cn/strings.php-e [new file with mode: 0644]

diff --git a/krynn/krynn.css-e b/krynn/krynn.css-e
new file mode 100755 (executable)
index 0000000..466a3ec
--- /dev/null
@@ -0,0 +1,14 @@
+
+
+
+#krynn-enable-label {
+       float: left;
+       width: 200px;
+       margin-bottom: 25px;
+}
+
+#krynn-checkbox {
+       float: left;
+}
+
+
index 4f336d7b8698473acaf2f39b849efca1242f5d42..d9ec7fae5b2520effe9e3a9051d565338df29ddc 100755 (executable)
@@ -1,7 +1,7 @@
 <?php
 /**
  * Name: Dragonlace Krynn locales
- * Description: Sample Friendica plugin/addon. Set a random locale from the Dragonlance Realm of Krynn when posting. Based on the planets frindica addon by Mike Macgirvin and Tony Baldwin
+ * Description: Sample Friendica plugin/addon. Set a random locale from the Dragonlance Realm of Krynn when posting. Based on the krynn frindica addon by Mike Macgirvin and Tony Baldwin
  * Version: 1.0
  * Planets Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
  * Planets Author: Tony Baldwin <https://free-haven.org/profile/tony>
diff --git a/krynn/krynn.php-e b/krynn/krynn.php-e
new file mode 100755 (executable)
index 0000000..4f336d7
--- /dev/null
@@ -0,0 +1,165 @@
+<?php
+/**
+ * Name: Dragonlace Krynn locales
+ * Description: Sample Friendica plugin/addon. Set a random locale from the Dragonlance Realm of Krynn when posting. Based on the planets frindica addon by Mike Macgirvin and Tony Baldwin
+ * Version: 1.0
+ * Planets Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
+ * Planets Author: Tony Baldwin <https://free-haven.org/profile/tony>
+ * Krynn modifications: Dylan Thiedeke
+ *
+ *"My body was my sacrifice... for my magic. This damage is permanent." - Raislin Majere
+ */
+
+
+function krynn_install() {
+
+       /**
+        * 
+        * Our demo plugin will attach in three places.
+        * The first is just prior to storing a local post.
+        *
+        */
+
+       register_hook('post_local', 'addon/krynn/krynn.php', 'krynn_post_hook');
+
+       /**
+        *
+        * Then we'll attach into the plugin settings page, and also the 
+        * settings post hook so that we can create and update
+        * user preferences.
+        *
+        */
+
+       register_hook('plugin_settings', 'addon/krynn/krynn.php', 'krynn_settings');
+       register_hook('plugin_settings_post', 'addon/krynn/krynn.php', 'krynn_settings_post');
+
+       logger("installed krynn");
+}
+
+
+function krynn_uninstall() {
+
+       /**
+        *
+        * uninstall unregisters any hooks created with register_hook
+        * during install. It may also delete configuration settings
+        * and any other cleanup.
+        *
+        */
+
+       unregister_hook('post_local',    'addon/krynn/krynn.php', 'krynn_post_hook');
+       unregister_hook('plugin_settings', 'addon/krynn/krynn.php', 'krynn_settings');
+       unregister_hook('plugin_settings_post', 'addon/krynn/krynn.php', 'krynn_settings_post');
+
+
+       logger("removed krynn");
+}
+
+
+
+function krynn_post_hook($a, &$item) {
+
+       /**
+        *
+        * An item was posted on the local system.
+        * We are going to look for specific items:
+        *      - A status post by a profile owner
+        *      - The profile owner must have allowed our plugin
+        *
+        */
+
+       logger('krynn invoked');
+
+       if(! local_user())   /* non-zero if this is a logged in user of this system */
+               return;
+
+       if(local_user() != $item['uid'])    /* Does this person own the post? */
+               return;
+
+       if($item['parent'])   /* If the item has a parent, this is a comment or something else, not a status post. */
+               return;
+
+       /* Retrieve our personal config setting */
+
+       $active = get_pconfig(local_user(), 'krynn', 'enable');
+
+       if(! $active)
+               return;
+
+       /**
+        *
+        * OK, we're allowed to do our stuff.
+        * Here's what we are going to do:
+        * load the list of timezone names, and use that to generate a list of krynn locales.
+        * Then we'll pick one of those at random and put it in the "location" field for the post.
+        *
+        */
+
+       $krynn = array('Ansalon','Abanasinia','Solace','Haven','Gateway','Qualinost','Ankatavaka','Pax Tharkas','Ergoth','Newsea','Straights of Schallsea','Plains of Dust','Tarsis','Barren Hills','Que Shu','Citadel of Light','Solinari','Hedge Maze','Tower of High Sorcery','Inn of the Last Home','Last Heroes Tomb','Academy of Sorcery','Gods Row','Temple of Majere','Temple of Kiri-Jolith','Temple of Mishakal','Temple of Zeboim,','The Trough','Sad Town','Xak Tsaroth','ZHaman','SKullcap',);
+
+       $planet = array_rand($krynn,1);
+       $item['location'] = $krynn[$planet];
+
+       return;
+}
+
+
+
+
+/**
+ *
+ * Callback from the settings post function.
+ * $post contains the $_POST array.
+ * We will make sure we've got a valid user account
+ * and if so set our configuration setting for this person.
+ *
+ */
+
+function krynn_settings_post($a,$post) {
+       if(! local_user())
+               return;
+       if($_POST['krynn-submit'])
+               set_pconfig(local_user(),'krynn','enable',intval($_POST['krynn']));
+}
+
+
+/**
+ *
+ * Called from the Plugin Setting form. 
+ * Add our own settings info to the page.
+ *
+ */
+
+
+
+function krynn_settings(&$a,&$s) {
+
+       if(! local_user())
+               return;
+
+       /* Add our stylesheet to the page so we can make our settings look nice */
+
+       $a->page['htmlhead'] .= '<link rel="stylesheet"  type="text/css" href="' . $a->get_baseurl() . '/addon/krynn/krynn.css' . '" media="all" />' . "\r\n";
+
+       /* Get the current state of our config variable */
+
+       $enabled = get_pconfig(local_user(),'krynn','enable');
+
+       $checked = (($enabled) ? ' checked="checked" ' : '');
+
+       /* Add some HTML to the existing form */
+
+       $s .= '<div class="settings-block">';
+       $s .= '<h3>' . t('Krynn Settings') . '</h3>';
+       $s .= '<div id="krynn-enable-wrapper">';
+       $s .= '<label id="krynn-enable-label" for="krynn-checkbox">' . t('Enable Krynn Plugin') . '</label>';
+       $s .= '<input id="krynn-checkbox" type="checkbox" name="krynn" value="1" ' . $checked . '/>';
+       $s .= '</div><div class="clear"></div>';
+
+       /* provide a submit button */
+
+       $s .= '<div class="settings-submit-wrapper" ><input type="submit" name="krynn-submit" class="settings-submit" value="' . t('Save Settings') . '" /></div></div>';
+
+}
+
+
index 843752a1d9e3c72ce72864ed39d9bef8ebd1901a..0831b915ab6939af35ed105c59ccd4a88e554c2b 100644 (file)
@@ -1,6 +1,6 @@
-# ADDON planets
+# ADDON krynn
 # Copyright (C) 
-# This file is distributed under the same license as the Friendica planets addon package.
+# This file is distributed under the same license as the Friendica krynn addon package.
 # 
 #
 #, fuzzy
@@ -17,14 +17,14 @@ msgstr ""
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 
-#: planets.php:150
-msgid "Planets Settings"
+#: krynn.php:150
+msgid "Krynn Settings"
 msgstr ""
 
-#: planets.php:152
-msgid "Enable Planets Plugin"
+#: krynn.php:152
+msgid "Enable Krynn Plugin"
 msgstr ""
 
-#: planets.php:158
+#: krynn.php:158
 msgid "Submit"
 msgstr ""
diff --git a/krynn/lang/C/messages.po-e b/krynn/lang/C/messages.po-e
new file mode 100644 (file)
index 0000000..0831b91
--- /dev/null
@@ -0,0 +1,30 @@
+# ADDON krynn
+# Copyright (C) 
+# This file is distributed under the same license as the Friendica krynn addon package.
+# 
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: \n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2013-02-27 05:01-0500\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: krynn.php:150
+msgid "Krynn Settings"
+msgstr ""
+
+#: krynn.php:152
+msgid "Enable Krynn Plugin"
+msgstr ""
+
+#: krynn.php:158
+msgid "Submit"
+msgstr ""
index 79fdd6be2493076c2c0af2ea3b831772b09f2630..ec7bf80346c3044dc63d763ee7b2b843d14c27f0 100644 (file)
@@ -1,5 +1,5 @@
 <?php\r
 \r
-$a->strings["Planets Settings"] = "Ajustos de Planet";\r
-$a->strings["Enable Planets Plugin"] = "Activa Plugin de Planet";\r
+$a->strings["Krynn Settings"] = "Ajustos de Krynn";\r
+$a->strings["Enable Krynn Plugin"] = "Activa Plugin de Krynn";\r
 $a->strings["Submit"] = "Enviar";\r
diff --git a/krynn/lang/ca/strings.php-e b/krynn/lang/ca/strings.php-e
new file mode 100644 (file)
index 0000000..ec7bf80
--- /dev/null
@@ -0,0 +1,5 @@
+<?php\r
+\r
+$a->strings["Krynn Settings"] = "Ajustos de Krynn";\r
+$a->strings["Enable Krynn Plugin"] = "Activa Plugin de Krynn";\r
+$a->strings["Submit"] = "Enviar";\r
index c47ff06cdb730dbe7c4d07fd482ced114c18ce7b..69e803e3ba66f6151c81eea923ae62718385f182 100644 (file)
@@ -1,6 +1,6 @@
-# ADDON planets
+# ADDON krynn
 # Copyright (C)
-# This file is distributed under the same license as the Friendica planets addon package.
+# This file is distributed under the same license as the Friendica krynn addon package.
 # 
 # 
 # Translators:
@@ -19,14 +19,14 @@ msgstr ""
 "Language: cs\n"
 "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
 
-#: planets.php:150
-msgid "Planets Settings"
-msgstr "Planets Nastavení"
+#: krynn.php:150
+msgid "Krynn Settings"
+msgstr "Krynn Nastavení"
 
-#: planets.php:152
-msgid "Enable Planets Plugin"
-msgstr "Povolit Planets plugin"
+#: krynn.php:152
+msgid "Enable Krynn Plugin"
+msgstr "Povolit Krynn plugin"
 
-#: planets.php:158
+#: krynn.php:158
 msgid "Submit"
 msgstr "Odeslat"
diff --git a/krynn/lang/cs/messages.po-e b/krynn/lang/cs/messages.po-e
new file mode 100644 (file)
index 0000000..69e803e
--- /dev/null
@@ -0,0 +1,32 @@
+# ADDON krynn
+# Copyright (C)
+# This file is distributed under the same license as the Friendica krynn addon package.
+# 
+# 
+# Translators:
+# Michal Šupler <msupler@gmail.com>, 2014-2015
+msgid ""
+msgstr ""
+"Project-Id-Version: friendica\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2013-02-27 05:01-0500\n"
+"PO-Revision-Date: 2015-02-11 19:37+0000\n"
+"Last-Translator: Michal Šupler <msupler@gmail.com>\n"
+"Language-Team: Czech (http://www.transifex.com/projects/p/friendica/language/cs/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Language: cs\n"
+"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
+
+#: krynn.php:150
+msgid "Krynn Settings"
+msgstr "Krynn Nastavení"
+
+#: krynn.php:152
+msgid "Enable Krynn Plugin"
+msgstr "Povolit Krynn plugin"
+
+#: krynn.php:158
+msgid "Submit"
+msgstr "Odeslat"
index 268f319212a34b96ed3af9f948cb26dcb9aaabb5..e725ffc3ed9af2f0e0e6303db9a707d4a0264ff8 100644 (file)
@@ -5,6 +5,6 @@ function string_plural_select_cs($n){
        return ($n==1) ? 0 : ($n>=2 && $n<=4) ? 1 : 2;;
 }}
 ;
-$a->strings["Planets Settings"] = "Planets Nastavení";
-$a->strings["Enable Planets Plugin"] = "Povolit Planets plugin";
+$a->strings["Krynn Settings"] = "Krynn Nastavení";
+$a->strings["Enable Krynn Plugin"] = "Povolit Krynn plugin";
 $a->strings["Submit"] = "Odeslat";
diff --git a/krynn/lang/cs/strings.php-e b/krynn/lang/cs/strings.php-e
new file mode 100644 (file)
index 0000000..e725ffc
--- /dev/null
@@ -0,0 +1,10 @@
+<?php
+
+if(! function_exists("string_plural_select_cs")) {
+function string_plural_select_cs($n){
+       return ($n==1) ? 0 : ($n>=2 && $n<=4) ? 1 : 2;;
+}}
+;
+$a->strings["Krynn Settings"] = "Krynn Nastavení";
+$a->strings["Enable Krynn Plugin"] = "Povolit Krynn plugin";
+$a->strings["Submit"] = "Odeslat";
index 42788d569e5e498c2cb549111fc48b026783019d..12dceb31192eb5148da5d503db9b05fa568bb38d 100644 (file)
@@ -1,6 +1,6 @@
-# ADDON planets
+# ADDON Krynn
 # Copyright (C)
-# This file is distributed under the same license as the Friendica planets addon package.
+# This file is distributed under the same license as the Friendica Krynn addon package.
 # 
 # 
 # Translators:
@@ -20,14 +20,14 @@ msgstr ""
 "Language: de\n"
 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
 
-#: planets.php:150
-msgid "Planets Settings"
+#: Krynn.php:150
+msgid "Krynn Settings"
 msgstr "Planeten Einstellungen"
 
-#: planets.php:152
-msgid "Enable Planets Plugin"
+#: Krynn.php:152
+msgid "Enable Krynn Plugin"
 msgstr "Planeten-Plugin aktivieren"
 
-#: planets.php:158
+#: Krynn.php:158
 msgid "Submit"
 msgstr "Senden"
diff --git a/krynn/lang/de/messages.po-e b/krynn/lang/de/messages.po-e
new file mode 100644 (file)
index 0000000..12dceb3
--- /dev/null
@@ -0,0 +1,33 @@
+# ADDON Krynn
+# Copyright (C)
+# This file is distributed under the same license as the Friendica Krynn addon package.
+# 
+# 
+# Translators:
+# Abrax <webmaster@a-zwenkau.de>, 2014
+# bavatar <tobias.diekershoff@gmx.net>, 2014
+msgid ""
+msgstr ""
+"Project-Id-Version: friendica\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2013-02-27 05:01-0500\n"
+"PO-Revision-Date: 2014-10-15 12:32+0000\n"
+"Last-Translator: Abrax <webmaster@a-zwenkau.de>\n"
+"Language-Team: German (http://www.transifex.com/projects/p/friendica/language/de/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Language: de\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#: Krynn.php:150
+msgid "Krynn Settings"
+msgstr "Planeten Einstellungen"
+
+#: Krynn.php:152
+msgid "Enable Krynn Plugin"
+msgstr "Planeten-Plugin aktivieren"
+
+#: Krynn.php:158
+msgid "Submit"
+msgstr "Senden"
diff --git a/krynn/lang/de/strings.php-e b/krynn/lang/de/strings.php-e
new file mode 100644 (file)
index 0000000..ab513fa
--- /dev/null
@@ -0,0 +1,10 @@
+<?php
+
+if(! function_exists("string_plural_select_de")) {
+function string_plural_select_de($n){
+       return ($n != 1);;
+}}
+;
+$a->strings["Planets Settings"] = "Planeten Einstellungen";
+$a->strings["Enable Planets Plugin"] = "Planeten-Plugin aktivieren";
+$a->strings["Submit"] = "Senden";
diff --git a/krynn/lang/eo/strings.php-e b/krynn/lang/eo/strings.php-e
new file mode 100644 (file)
index 0000000..2f9ff97
--- /dev/null
@@ -0,0 +1,5 @@
+<?php\r
+\r
+$a->strings["Planets Settings"] = "Agordo pri Planets";\r
+$a->strings["Enable Planets Plugin"] = "Ŝalti la Planets kromprogamon";\r
+$a->strings["Submit"] = "Sendi";\r
diff --git a/krynn/lang/es/strings.php-e b/krynn/lang/es/strings.php-e
new file mode 100644 (file)
index 0000000..67b52dc
--- /dev/null
@@ -0,0 +1,5 @@
+<?php\r
+\r
+$a->strings["Planets Settings"] = "Configuración de Planets";\r
+$a->strings["Enable Planets Plugin"] = "Activar el módulo de planetas Planets";\r
+$a->strings["Submit"] = "Envíar";\r
diff --git a/krynn/lang/fr/strings.php-e b/krynn/lang/fr/strings.php-e
new file mode 100644 (file)
index 0000000..505d24c
--- /dev/null
@@ -0,0 +1,5 @@
+<?php\r
+\r
+$a->strings["Planets Settings"] = "Réglages des Planets";\r
+$a->strings["Enable Planets Plugin"] = "Activer Planets";\r
+$a->strings["Submit"] = "Envoyer";\r
diff --git a/krynn/lang/is/strings.php-e b/krynn/lang/is/strings.php-e
new file mode 100644 (file)
index 0000000..d59b838
--- /dev/null
@@ -0,0 +1,5 @@
+<?php\r
+\r
+$a->strings["Planets Settings"] = "";\r
+$a->strings["Enable Planets Plugin"] = "";\r
+$a->strings["Submit"] = "Senda inn";\r
index 3740be8ff497036c5a8e8349e8b5fb6fe3fcb99e..20b7be17afbaad4f31ddb8b67833beead820433e 100644 (file)
@@ -1,6 +1,6 @@
-# ADDON planets
+# ADDON krynn
 # Copyright (C)
-# This file is distributed under the same license as the Friendica planets addon package.
+# This file is distributed under the same license as the Friendica krynn addon package.
 # 
 # 
 # Translators:
@@ -19,14 +19,14 @@ msgstr ""
 "Language: it\n"
 "Plural-Forms: nplurals=2; plural=(n != 1);\n"
 
-#: planets.php:150
+#: krynn.php:150
 msgid "Planets Settings"
 msgstr "Impostazioni \"Pianeti\""
 
-#: planets.php:152
+#: krynn.php:152
 msgid "Enable Planets Plugin"
 msgstr "Abilita il plugin \"Pianeti\""
 
-#: planets.php:158
+#: krynn.php:158
 msgid "Submit"
 msgstr ""
diff --git a/krynn/lang/it/messages.po-e b/krynn/lang/it/messages.po-e
new file mode 100644 (file)
index 0000000..3740be8
--- /dev/null
@@ -0,0 +1,32 @@
+# ADDON planets
+# Copyright (C)
+# This file is distributed under the same license as the Friendica planets addon package.
+# 
+# 
+# Translators:
+# fabrixxm <fabrix.xm@gmail.com>, 2014
+msgid ""
+msgstr ""
+"Project-Id-Version: friendica\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2013-02-27 05:01-0500\n"
+"PO-Revision-Date: 2014-10-15 09:01+0000\n"
+"Last-Translator: fabrixxm <fabrix.xm@gmail.com>\n"
+"Language-Team: Italian (http://www.transifex.com/projects/p/friendica/language/it/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Language: it\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#: planets.php:150
+msgid "Planets Settings"
+msgstr "Impostazioni \"Pianeti\""
+
+#: planets.php:152
+msgid "Enable Planets Plugin"
+msgstr "Abilita il plugin \"Pianeti\""
+
+#: planets.php:158
+msgid "Submit"
+msgstr ""
diff --git a/krynn/lang/it/strings.php-e b/krynn/lang/it/strings.php-e
new file mode 100644 (file)
index 0000000..635183f
--- /dev/null
@@ -0,0 +1,10 @@
+<?php
+
+if(! function_exists("string_plural_select_it")) {
+function string_plural_select_it($n){
+       return ($n != 1);;
+}}
+;
+$a->strings["Planets Settings"] = "Impostazioni \"Pianeti\"";
+$a->strings["Enable Planets Plugin"] = "Abilita il plugin \"Pianeti\"";
+$a->strings["Submit"] = "";
diff --git a/krynn/lang/nb-no/strings.php-e b/krynn/lang/nb-no/strings.php-e
new file mode 100644 (file)
index 0000000..628eb2a
--- /dev/null
@@ -0,0 +1,5 @@
+<?php\r
+\r
+$a->strings["Planets Settings"] = "";\r
+$a->strings["Enable Planets Plugin"] = "";\r
+$a->strings["Submit"] = "Lagre";\r
diff --git a/krynn/lang/pl/strings.php-e b/krynn/lang/pl/strings.php-e
new file mode 100644 (file)
index 0000000..9712004
--- /dev/null
@@ -0,0 +1,5 @@
+<?php\r
+\r
+$a->strings["Planets Settings"] = "";\r
+$a->strings["Enable Planets Plugin"] = "";\r
+$a->strings["Submit"] = "Potwierdź";\r
diff --git a/krynn/lang/pt-br/strings.php-e b/krynn/lang/pt-br/strings.php-e
new file mode 100644 (file)
index 0000000..5cb179c
--- /dev/null
@@ -0,0 +1,5 @@
+<?php\r
+\r
+$a->strings["Planets Settings"] = "Configuração dos planetas";\r
+$a->strings["Enable Planets Plugin"] = "Habilita configuração dos planetas";\r
+$a->strings["Submit"] = "Enviar";\r
index 67932a8b4d3b191344db8cc0b7fc96612e7a179e..df7a3806a6c524dc7ce89eee2bed8c840e8fd7b5 100644 (file)
@@ -1,6 +1,6 @@
-# ADDON planets
+# ADDON krynn
 # Copyright (C)
-# This file is distributed under the same license as the Friendica planets addon package.
+# This file is distributed under the same license as the Friendica krynn addon package.
 # 
 # 
 # Translators:
@@ -19,14 +19,14 @@ msgstr ""
 "Language: ro_RO\n"
 "Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n"
 
-#: planets.php:150
+#: krynn.php:150
 msgid "Planets Settings"
 msgstr "Configurări Planets"
 
-#: planets.php:152
+#: krynn.php:152
 msgid "Enable Planets Plugin"
 msgstr "Activare Modul Planets"
 
-#: planets.php:158
+#: krynn.php:158
 msgid "Submit"
 msgstr "Trimite"
diff --git a/krynn/lang/ro/messages.po-e b/krynn/lang/ro/messages.po-e
new file mode 100644 (file)
index 0000000..67932a8
--- /dev/null
@@ -0,0 +1,32 @@
+# ADDON planets
+# Copyright (C)
+# This file is distributed under the same license as the Friendica planets addon package.
+# 
+# 
+# Translators:
+# Doru  DEACONU <dumitrudeaconu@yahoo.com>, 2014
+msgid ""
+msgstr ""
+"Project-Id-Version: friendica\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2013-02-27 05:01-0500\n"
+"PO-Revision-Date: 2014-11-27 14:16+0000\n"
+"Last-Translator: Doru  DEACONU <dumitrudeaconu@yahoo.com>\n"
+"Language-Team: Romanian (Romania) (http://www.transifex.com/projects/p/friendica/language/ro_RO/)\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Language: ro_RO\n"
+"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n"
+
+#: planets.php:150
+msgid "Planets Settings"
+msgstr "Configurări Planets"
+
+#: planets.php:152
+msgid "Enable Planets Plugin"
+msgstr "Activare Modul Planets"
+
+#: planets.php:158
+msgid "Submit"
+msgstr "Trimite"
diff --git a/krynn/lang/ro/strings.php-e b/krynn/lang/ro/strings.php-e
new file mode 100644 (file)
index 0000000..93736aa
--- /dev/null
@@ -0,0 +1,10 @@
+<?php
+
+if(! function_exists("string_plural_select_ro")) {
+function string_plural_select_ro($n){
+       return ($n==1?0:((($n%100>19)||(($n%100==0)&&($n!=0)))?2:1));;
+}}
+;
+$a->strings["Planets Settings"] = "Configurări Planets";
+$a->strings["Enable Planets Plugin"] = "Activare Modul Planets";
+$a->strings["Submit"] = "Trimite";
diff --git a/krynn/lang/ru/strings.php-e b/krynn/lang/ru/strings.php-e
new file mode 100644 (file)
index 0000000..1902b82
--- /dev/null
@@ -0,0 +1,5 @@
+<?php\r
+\r
+$a->strings["Planets Settings"] = "";\r
+$a->strings["Enable Planets Plugin"] = "";\r
+$a->strings["Submit"] = "Подтвердить";\r
diff --git a/krynn/lang/sv/strings.php-e b/krynn/lang/sv/strings.php-e
new file mode 100644 (file)
index 0000000..3ec569a
--- /dev/null
@@ -0,0 +1,3 @@
+<?php\r
+\r
+$a->strings["Submit"] = "Spara";\r
diff --git a/krynn/lang/zh-cn/strings.php-e b/krynn/lang/zh-cn/strings.php-e
new file mode 100644 (file)
index 0000000..ac066c7
--- /dev/null
@@ -0,0 +1,5 @@
+<?php\r
+\r
+$a->strings["Planets Settings"] = "行星设置";\r
+$a->strings["Enable Planets Plugin"] = "使行星插件可用";\r
+$a->strings["Submit"] = "提交";\r