Skip to content

Commit

Permalink
Tagging 0.9.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanrice committed Aug 9, 2013
1 parent 00d39a0 commit 78faae2
Show file tree
Hide file tree
Showing 9 changed files with 474 additions and 47 deletions.
4 changes: 2 additions & 2 deletions admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
add_action('admin_init', 'register_ss_settings');
function register_ss_settings() {
register_setting(SS_SETTINGS_FIELD, SS_SETTINGS_FIELD);
add_option(SS_SETTINGS_FIELD, '__return_empty_array', '', 'yes');
add_option(SS_SETTINGS_FIELD, array(), '', 'yes');
}

/**
Expand Down Expand Up @@ -96,7 +96,7 @@ function ss_settings_admin() { ?>

</table>

<p class="submit"><input type="submit" class="button-primary" name="submit" value="<?php _e('Update', 'ee'); ?>" /></p>
<p class="submit"><input type="submit" class="button-primary" name="submit" value="<?php _e('Update', 'ss'); ?>" /></p>

</form>

Expand Down
10 changes: 9 additions & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ function ss_create_sidebar( $args = array() ) {
// nonce verification
check_admin_referer('simple-sidebars-action_create-sidebar');

// WP changes a numeric sidebar id to sidebar-id which makes it inaccessible to the user
if ( is_numeric( $args['id'] ) )
$args['id'] = sanitize_title_with_dashes( $args['name'] );

$db = (array)get_option(SS_SETTINGS_FIELD);
$new = array(
sanitize_title_with_dashes( $args['id'] ) => array(
Expand Down Expand Up @@ -81,6 +85,10 @@ function ss_edit_sidebar( $args = array() ) {
// nonce verification
check_admin_referer('simple-sidebars-action_edit-sidebar');

// WP changes a numeric sidebar id to sidebar-id which makes it inaccessible to the user
if ( is_numeric( $args['id'] ) )
$args['id'] = sanitize_title_with_dashes( $args['name'] );

$db = (array)get_option(SS_SETTINGS_FIELD);
$new = array(
sanitize_title_with_dashes( $args['id'] ) => array(
Expand Down Expand Up @@ -137,7 +145,7 @@ function ss_error_message( $error = false ) {
return __('Oops! Please choose a valid Name and ID for this sidebar', 'ss');
break;
case 2:
return __('Oops! That sidebar ID already exists');
return __('Oops! That sidebar ID already exists', 'ss');
break;
case 3:
return __('Oops! You are trying to edit a sidebar that does not exist, or is not editable', 'ss');
Expand Down
11 changes: 9 additions & 2 deletions inpost.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
function ss_add_inpost_metabox() {
foreach ( (array)get_post_types( array( 'public' => true ) ) as $type ) {
if ( post_type_supports( $type, 'genesis-simple-sidebars' ) || $type == 'post' || $type == 'page' ) {
add_meta_box('ss_inpost_metabox', __('Sidebar Selection', 'genesis'), 'ss_inpost_metabox', $type, 'side', 'low');
add_meta_box('ss_inpost_metabox', __('Sidebar Selection', 'ss'), 'ss_inpost_metabox', $type, 'side', 'low');
}
}
}
Expand All @@ -29,7 +29,14 @@ function ss_inpost_metabox() {
?>
</select>
</p>

<?php
// don't show the option if there are no 3 column layouts registered
$_layouts = (array) genesis_get_layouts();
$_layouts = array_keys( $_layouts );
$_3_column = array_intersect( $_layouts, array( 'content-sidebar-sidebar', 'sidebar-content-sidebar', 'sidebar-sidebar-content' ) );
if ( empty( $_3_column ) )
return;
?>
<p>
<label class="howto" for="_ss_sidebar_alt"><span><?php _e('Secondary Sidebar', 'ss'); ?><span></label>
<select name="_ss_sidebar_alt" id="_ss_sidebar_alt" style="width: 99%">
Expand Down
Binary file added languages/ss-de_DE.mo
Binary file not shown.
226 changes: 226 additions & 0 deletions languages/ss-de_DE.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,226 @@
# Copyright (C) 2011 Genesis Layout Extras by David Decker of deckerweb.de
# This file is distributed under the same license as the Genesis Layout Extras package.
#
msgid ""
msgstr ""
"Project-Id-Version: Genesis Simple Sidebars (Plugin)\n"
"Report-Msgid-Bugs-To: http://wordpress.org/tags/genesis-simple-sidebars\n"
"POT-Creation-Date: 2011-12-24 01:10+0100\n"
"PO-Revision-Date: 2011-12-24 01:18+0100\n"
"Last-Translator: David Decker <[email protected]>\n"
"Language-Team: DECKERWEB <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Poedit-Language: German\n"
"X-Poedit-Country: GERMANY\n"
"X-Poedit-SourceCharset: utf-8\n"
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
"X-Textdomain-Support: yes\n"
"X-Poedit-SearchPath-0: .\n"

#@ ss
#: admin.php:17
msgid "Simple Sidebars"
msgstr "Einfache Sidebars"

#@ ss
#: admin.php:66
msgid "Nice try, partner. But that sidebar doesn't exist. Click back and try again."
msgstr "Netter Versuch, doch leider existiert diese Sidebar nicht. Gehen Sie zurück und versuchen Sie es erneut."

#@ ss
#: admin.php:72
msgid "Edit Sidebar"
msgstr "Sidebar bearbeiten"

#@ ss
#: admin.php:79
#: admin.php:117
#: admin.php:125
#: admin.php:152
msgid "Name"
msgstr "Name"

#@ ss
#: admin.php:81
#: admin.php:154
msgid "A recognizable name for your new sidebar widget area"
msgstr "Ein passender Name für Ihren neuen Sidebar-Widget-Bereich"

#@ ss
#: admin.php:85
#: admin.php:118
#: admin.php:126
#: admin.php:158
msgid "ID"
msgstr "ID"

#@ ss
#: admin.php:89
msgid "The unique ID is used to register the sidebar widget area (cannot be changed)"
msgstr "Die einzigartige ID wird verwendet, um den Sidebar-Widget-Bereich zu registrieren. Diese ID kann nicht verändert werden. Verwenden Sie am besten nur kleinbuchstaben, Bindestriche (Minus) und Zahlen."

#@ ss
#: admin.php:93
#: admin.php:119
#: admin.php:127
#: admin.php:164
msgid "Description"
msgstr "Beschreibung"

#@ ss
#: admin.php:99
msgid "Update"
msgstr "Aktualisieren"

#@ ss
#: admin.php:106
msgid "Genesis - Simple Sidebars"
msgstr "Genesis - Einfache Sidebars"

#@ ss
#: admin.php:113
msgid "Current Sidebars"
msgstr "Aktuelle Sidebars"

#@ ss
#: admin.php:146
#: admin.php:168
msgid "Add New Sidebar"
msgstr "Neue Sidebar hinzufügen"

#@ ss
#: admin.php:160
msgid "The unique ID is used to register the sidebar widget area"
msgstr "Die einzigartige ID wird verwendet, um den neuen Sidebar-Widget-Bereich zu registrieren. Diese ID kann nicht verändert werden. Verwenden Sie am besten nur kleinbuchstaben, Bindestriche (Minus) und Zahlen."

#@ ss
#: functions.php:28
msgid "Edit"
msgstr "Bearbeiten"

#@ ss
#: functions.php:29
msgid "Delete"
msgstr "Löschen"

#@ ss
#: functions.php:145
msgid "Oops! Please choose a valid Name and ID for this sidebar"
msgstr "Oops! Bitte wählen Sie einen gültigen Namen und eine gültige ID für diese Sidebar"

#@ ss
#: functions.php:148
msgid "Oops! That sidebar ID already exists"
msgstr "Oops! Diese Sidebar-ID existiert bereits"

#@ ss
#: functions.php:151
msgid "Oops! You are trying to edit a sidebar that does not exist, or is not editable"
msgstr "Oops! Sie versuchen eine Sidebar zu bearbeiten, die nicht existiert, oder nicht bearbeitet werden kann"

#@ ss
#: functions.php:154
msgid "Oops! You are trying to delete a sidebar that does not exist, or cannot be deleted"
msgstr "Oops! Sie versuchen eine Sidebar zu löschen, die nicht existiert oder nicht gelöscht werden kann/ darf"

#@ ss
#: functions.php:157
msgid "Oops! Something went wrong. Try again."
msgstr "Oops! Etwas ging schief. Bitte versuchen Sie es noch einmal."

#@ ss
#: functions.php:173
msgid "New sidebar successfully created!"
msgstr "Neue Sidebar erfolgreich erstellt!"

#@ ss
#: functions.php:178
msgid "Sidebar successfully edited!"
msgstr "Sidebar erfolgreich bearbeitet!"

#@ ss
#: functions.php:183
msgid "Sidebar successfully deleted."
msgstr "Sidebar erfolgreich gelöscht."

#@ ss
#: inpost.php:10
msgid "Sidebar Selection"
msgstr "Sidebar-Auswahl"

#@ ss
#: inpost.php:22
#: term.php:29
msgid "Primary Sidebar"
msgstr "Haupt-Sidebar (Primary)"

#@ ss
#: inpost.php:24
#: inpost.php:43
#: term.php:32
#: term.php:46
msgid "Default"
msgstr "Standard"

#@ ss
#: inpost.php:41
#: term.php:43
msgid "Secondary Sidebar"
msgstr "Zweit-Sidebar (Secondary)"

#@ ss
#: plugin.php:24
#, php-format
msgid "Sorry, you can't activate unless you have installed <a href=\"%s\">Genesis</a>"
msgstr "Hinweis: Dieses Plugin kann <em>nicht</em> aktiviert werden, solange das <a href=\"%s\">Genesis Framework</a> nicht installiert ist."

#@ ss
#: plugin.php:29
#, php-format
msgid "Sorry, you cannot activate without <a href=\"%s\">Genesis %s</a> or greater"
msgstr "Hinweis: Dieses Plugin kann <em>nicht</em> aktiviert werden, au&szlig;er das <a href=\"%s\">Genesis Framework Version %s</a> oder h&ouml;her ist installiert."

#@ ss
#: term.php:25
msgid "Sidebar Options"
msgstr "Sidebar-Optionen"

#@ ss
#. translators: plugin header field 'Name'
#: plugin.php:0
msgid "Genesis Simple Sidebars"
msgstr "Genesis Einfache Sidebars"

#@ ss
#. translators: plugin header field 'PluginURI'
#: plugin.php:0
msgid "http://www.studiopress.com/plugins/simple-sidebars"
msgstr "http://www.studiopress.com/plugins/simple-sidebars"

#@ ss
#. translators: plugin header field 'Description'
#: plugin.php:0
msgid "Genesis Simple Sidebars allows you to easily create and use new sidebar widget areas."
msgstr "Genesis Einfache Sidebars (Simple Sidebars) erlaubt es auf einfache Art und Weise neue Sidebar-Widget-Bereiche zu erstellen und zu verwenden."

#@ ss
#. translators: plugin header field 'Author'
#: plugin.php:0
msgid "Nathan Rice"
msgstr "Nathan Rice"

#@ ss
#. translators: plugin header field 'AuthorURI'
#: plugin.php:0
msgid "http://www.nathanrice.net/"
msgstr "http://www.nathanrice.net/"

#@ ss
#. translators: plugin header field 'Version'
#: plugin.php:0
msgid "0.9.2"
msgstr "0.9.2"

Loading

0 comments on commit 78faae2

Please sign in to comment.