From 59eefb71233d42f3cc9f59cee127b347b71298b7 Mon Sep 17 00:00:00 2001 From: Nikolai Kristiansen Date: Fri, 20 Jan 2012 20:40:55 +0100 Subject: [PATCH] Adds i18n and nb_NO translation --- languages/neuf_assoc-nb_NO.mo | Bin 0 -> 1265 bytes languages/neuf_assoc-nb_NO.po | 78 ++++++++++++++++++++++++++++++++ languages/neuf_assoc.pot | 70 ++++++++++++++++++++++++++++ neuf-associations-admin.php | 17 +++---- neuf-associations-post-type.php | 20 ++++---- neuf-associations.php | 7 ++- 6 files changed, 173 insertions(+), 19 deletions(-) create mode 100644 languages/neuf_assoc-nb_NO.mo create mode 100644 languages/neuf_assoc-nb_NO.po create mode 100644 languages/neuf_assoc.pot diff --git a/languages/neuf_assoc-nb_NO.mo b/languages/neuf_assoc-nb_NO.mo new file mode 100644 index 0000000000000000000000000000000000000000..2c12141d3721813780893b672bcc773b5869f2fa GIT binary patch literal 1265 zcmaKrOHWfl6vszJ#rg=o;>MVXTQl^w!~`xrpa`*{V104rUY z_z76~4cNKB&)~*{wQDzST=*YKZHbRbPk(dIocG*&cx~(h!@2^w4S5H-4*3ZQ>**=R z&VxlT=%0fZK{|eZ4PL_YE;s?c2hW0g;7#x&cnACh2LD5F4EzoT`yXJ4KYp6AyO0S; zh(86Rz{lV?xD4I^D_{mxVDR@~$hQmL0^foh+yk$IpF#ZC7yN}fzk(s&HxQ|hVg-Ms zJ+eCohVzj70wk<3n^0r$KLZ)8%Y#kee3I~0>J7-}oijBhy)v5pW6u-vQnlRZxnqlo z@+Z8DZJ82VHCzruI$k$jo%~(PmFC_`*I?@;ZLKjH&9TZ(huDUq-l&?rq^eV%SlOB_ zs(DdN#0FW1>SL~{TNk6rGi%f_){7OFszemJsS_0w^Gx|!MJ!l4YFa#zo?@Pla(NNu zL_XrVnfU(Hy(kw&FcfRFtwQ)e?ebAPHPg2%N#{kyO6^+G8yoXg)if=s__9^bE9gn{ z2fD9p&ZTXPbFyaIk1{2x(=O&FDkR(g_nULRn~?TsSGMbzD)~umh9S_{N^xazIFH<9 zlvyxv&?pYmjJc;bKHEWIdY0E3(mL`FUsRUF^w2IeQ70=Fb` zVo)$@HMU17n&So2Y|GZrW|?++#wM2!-90wk-ic0Y{RrE+nJ+y*P=@oa*5v=C=Zd?7eGHwgAM7{r UH1r(2t<8 literal 0 HcmV?d00001 diff --git a/languages/neuf_assoc-nb_NO.po b/languages/neuf_assoc-nb_NO.po new file mode 100644 index 0000000..794d8d9 --- /dev/null +++ b/languages/neuf_assoc-nb_NO.po @@ -0,0 +1,78 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +msgid "" +msgstr "" +"Project-Id-Version: neuf-associations\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2012-01-20 19:53+0100\n" +"PO-Revision-Date: 2012-01-20 20:39+0100\n" +"Last-Translator: Nikolai Kristiansen \n" +"Language-Team: Nikolai Kristiansen \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Norwegian Bokmal\n" +"X-Poedit-KeywordsList: __;_e\n" +"X-Poedit-Basepath: /home/nikolark/dev/edb/neuf-web/wp-content/plugins/neuf-associations\n" +"X-Poedit-SearchPath-0: .\n" + +#: neuf-associations-post-type.php:5 +msgid "Associations" +msgstr "Foreninger" + +#: neuf-associations-post-type.php:6 +#: neuf-associations-admin.php:6 +msgid "Association" +msgstr "Forening" + +#: neuf-associations-post-type.php:7 +#: neuf-associations-post-type.php:8 +msgid "Add New" +msgstr "Legg til ny" + +#: neuf-associations-post-type.php:9 +msgid "Edit Association" +msgstr "Rediger forening" + +#: neuf-associations-post-type.php:10 +msgid "Add New Association" +msgstr "Legg til ny" + +#: neuf-associations-post-type.php:11 +msgid "View Association" +msgstr "Vis forening" + +#: neuf-associations-post-type.php:12 +msgid "Search Associations" +msgstr "Søk i foreninger" + +#: neuf-associations-post-type.php:13 +msgid "No associations found" +msgstr "Ingen foreninger funnet" + +#: neuf-associations-post-type.php:14 +msgid "No associations found in trash" +msgstr "Ingen foreninger funnet i søpla" + +#: neuf-associations-admin.php:7 +msgid "Image" +msgstr "Bilde" + +#: neuf-associations-admin.php:8 +#: neuf-associations-admin.php:68 +msgid "Website" +msgstr "Nettside" + +#: neuf-associations-admin.php:9 +#: neuf-associations-admin.php:70 +msgid "Type" +msgstr "Type" + +#: neuf-associations-admin.php:49 +msgid "Association details" +msgstr "Foreningsinformasjon" + diff --git a/languages/neuf_assoc.pot b/languages/neuf_assoc.pot new file mode 100644 index 0000000..d88dc4a --- /dev/null +++ b/languages/neuf_assoc.pot @@ -0,0 +1,70 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2012-01-20 20:37+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#: neuf-associations-admin.php:6 neuf-associations-post-type.php:6 +msgid "Association" +msgstr "" + +#: neuf-associations-admin.php:7 +msgid "Image" +msgstr "" + +#: neuf-associations-admin.php:8 neuf-associations-admin.php:68 +msgid "Website" +msgstr "" + +#: neuf-associations-admin.php:9 neuf-associations-admin.php:70 +msgid "Type" +msgstr "" + +#: neuf-associations-admin.php:49 +msgid "Association details" +msgstr "" + +#: neuf-associations-post-type.php:5 +msgid "Associations" +msgstr "" + +#: neuf-associations-post-type.php:7 neuf-associations-post-type.php:8 +msgid "Add New" +msgstr "" + +#: neuf-associations-post-type.php:9 +msgid "Edit Association" +msgstr "" + +#: neuf-associations-post-type.php:10 +msgid "Add New Association" +msgstr "" + +#: neuf-associations-post-type.php:11 +msgid "View Association" +msgstr "" + +#: neuf-associations-post-type.php:12 +msgid "Search Associations" +msgstr "" + +#: neuf-associations-post-type.php:13 +msgid "No associations found" +msgstr "" + +#: neuf-associations-post-type.php:14 +msgid "No associations found in trash" +msgstr "" diff --git a/neuf-associations-admin.php b/neuf-associations-admin.php index 7e18bd6..4ef8071 100644 --- a/neuf-associations-admin.php +++ b/neuf-associations-admin.php @@ -3,10 +3,10 @@ function neuf_associations_change_columns( $cols ) { $custom_cols = array( 'cb' => '', - 'title' => __( 'Forening', 'trans' ), - 'image' => __( 'Bilde', 'trans' ), - 'homepage' => __( 'Hjemmeside', 'trans' ), - 'type' => __( 'Type', 'trans' ), + 'title' => __( 'Association', 'neuf_assoc' ), + 'image' => __( 'Image', 'neuf_assoc' ), + 'homepage' => __( 'Website', 'neuf_assoc' ), + 'type' => __( 'Type', 'neuf_assoc' ), ); return $custom_cols; } @@ -46,7 +46,7 @@ add_filter( "manage_edit-association_sortable_columns", "neuf_associations_sorta function add_associations_metaboxes() { add_meta_box( 'neuf_associations_div', - __('Foreningsinformasjon'), + __('Association details', 'neuf_assoc'), 'neuf_associations_div', 'association', 'side' @@ -58,15 +58,16 @@ function add_associations_metaboxes() { function neuf_associations_div(){ global $post; + /* Static types */ $association_types = array('Forening', 'Utvalg'); - $association_type = get_post_meta( $post->ID, '_neuf_associations_type', true ); + $association_type = get_post_meta( $post->ID, '_neuf_associations_type', true ); $association_homepage = get_post_meta( $post->ID, '_neuf_associations_homepage', true ); ?>
- + " /> - +