Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
i18n support
  • Loading branch information
danielbachhuber committed Oct 26, 2012
1 parent f5038e4 commit afa7784
Show file tree
Hide file tree
Showing 3 changed files with 181 additions and 5 deletions.
6 changes: 4 additions & 2 deletions ad-code-manager.php 100644 → 100755
Expand Up @@ -146,9 +146,11 @@ function action_load_providers() {
*/
function action_init() {

load_plugin_textdomain( 'ad-code-manager', false, plugin_basename( dirname( __FILE__ ) ) . '/languages/' );

$this->post_type_labels = array(
'name' => __( 'DFP Ad Codes' ),
'singular_name' => __( 'DFP Ad Codes' ),
'name' => __( 'Ad Codes', 'ad-code-manager' ),
'singular_name' => __( 'Ad Code', 'ad-code-manager' ),
);

// Allow other conditionals to be used
Expand Down
6 changes: 3 additions & 3 deletions common/lib/acm-widget.php 100644 → 100755
Expand Up @@ -11,9 +11,9 @@ class ACM_Ad_Zones extends WP_Widget {
function ACM_Ad_Zones() {
$widget_ops = array(
'classname' => 'acm_ad_zones',
'description' => 'Display an Ad Code Manger ad zone within a widget area'
'description' => __( 'Display an Ad Code Manger ad zone within a widget area', 'ad-code-manager' ),
);
$this->WP_Widget( 'ACM_Ad_Zones', 'Ad Code Manager Ad Zone', $widget_ops );
$this->WP_Widget( 'ACM_Ad_Zones', __( 'Ad Code Manager Ad Zone', 'ad-code-manager' ), $widget_ops );
}

// Build the widget settings form
Expand Down Expand Up @@ -43,7 +43,7 @@ function form( $instance ) {
</select>
<?php else: ?>
<?php $create_url = add_query_arg( 'page', $ad_code_manager->plugin_slug, admin_url( 'tools.php' ) ); ?>
<span class="description"><?php echo sprintf( __( "No ad codes have been added yet. <a href='%s'>Please create one</a>." ), $create_url ); ?></span>
<span class="description"><?php echo sprintf( __( "No ad codes have been added yet. <a href='%s'>Please create one</a>.", 'ad-code-manager' ), $create_url ); ?></span>
<?php endif; ?>
</p>

Expand Down
174 changes: 174 additions & 0 deletions languages/ad-code-manager.pot
@@ -0,0 +1,174 @@
# Copyright (C) 2012 Ad Code Manager
# This file is distributed under the same license as the Ad Code Manager package.
msgid ""
msgstr ""
"Project-Id-Version: Ad Code Manager 0.3-working\n"
"Report-Msgid-Bugs-To: http://wordpress.org/tag/ad-code-manager\n"
"POT-Creation-Date: 2012-10-26 01:27:39+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"PO-Revision-Date: 2012-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"

#: ad-code-manager.php:152
msgid "Ad Codes"
msgstr ""

#: ad-code-manager.php:153
msgid "Ad Code"
msgstr ""

#: ad-code-manager.php:216
msgid "Doing something fishy, eh?"
msgstr ""

#: ad-code-manager.php:219
msgid "You do not have the necessary permissions to perform this action"
msgstr ""

#: common/lib/acm-provider.php:27 common/lib/acm-wp-list-table.php:31
msgid "Name"
msgstr ""

#: common/lib/acm-widget.php:14
msgid "Display an Ad Code Manger ad zone within a widget area"
msgstr ""

#: common/lib/acm-widget.php:16
msgid "Ad Code Manager Ad Zone"
msgstr ""

#: common/lib/acm-widget.php:46
msgid "No ad codes have been added yet. <a href='%s'>Please create one</a>."
msgstr ""

#: common/lib/acm-wp-list-table.php:30 common/lib/acm-wp-list-table.php:39
#: providers/doubleclick-for-publishers.php:101
#: providers/google-adsense.php:80
msgid "ID"
msgstr ""

#: common/lib/acm-wp-list-table.php:32 common/lib/acm-wp-list-table.php:43
#: common/lib/acm-wp-list-table.php:232
#: providers/doubleclick-for-publishers.php:104
#: providers/google-adsense.php:82
msgid "Priority"
msgstr ""

#: common/lib/acm-wp-list-table.php:33 common/lib/acm-wp-list-table.php:44
#: common/lib/acm-wp-list-table.php:237
#: providers/doubleclick-for-publishers.php:105
msgid "Logical Operator"
msgstr ""

#: common/lib/acm-wp-list-table.php:34 common/lib/acm-wp-list-table.php:45
#: common/lib/acm-wp-list-table.php:198
#: common/views/ad-code-manager.tpl.php:73
#: providers/doubleclick-for-publishers.php:106
#: providers/google-adsense.php:83
msgid "Conditionals"
msgstr ""

#: common/lib/acm-wp-list-table.php:60 common/lib/acm-wp-list-table.php:296
msgid "Delete"
msgstr ""

#: common/lib/acm-wp-list-table.php:128
msgid "No ad codes have been configured."
msgstr ""

#: common/lib/acm-wp-list-table.php:205
#: common/views/ad-code-manager.tpl.php:77
msgid "Select conditional"
msgstr ""

#: common/lib/acm-wp-list-table.php:217
msgid "Add more"
msgstr ""

#: common/lib/acm-wp-list-table.php:221
msgid "URL Variables"
msgstr ""

#: common/lib/acm-wp-list-table.php:240
msgid "OR"
msgstr ""

#: common/lib/acm-wp-list-table.php:241
msgid "AND"
msgstr ""

#: common/lib/acm-wp-list-table.php:269
msgid "None"
msgstr ""

#: common/lib/acm-wp-list-table.php:286
msgid "Preview Ad Code"
msgstr ""

#: common/lib/acm-wp-list-table.php:287
msgid "Edit Ad Code"
msgstr ""

#: common/lib/acm-wp-list-table.php:326
msgid "Cancel"
msgstr ""

#: common/lib/acm-wp-list-table.php:328
msgid "Update"
msgstr ""

#: common/views/ad-code-manager.tpl.php:11
msgid "Ad code created."
msgstr ""

#: common/views/ad-code-manager.tpl.php:14
msgid "Ad code deleted."
msgstr ""

#: common/views/ad-code-manager.tpl.php:17
msgid "Ad codes deleted."
msgstr ""

#: common/views/ad-code-manager.tpl.php:50
#: common/views/ad-code-manager.tpl.php:95
msgid "Add New Ad Code"
msgstr ""

#: providers/doubleclick-for-publishers.php:67
#: providers/doubleclick-for-publishers.php:102
msgid "Site Name"
msgstr ""

#: providers/doubleclick-for-publishers.php:73
msgid "zone1"
msgstr ""

#: providers/doubleclick-for-publishers.php:103
msgid "Zone1"
msgstr ""

#: providers/google-adsense.php:44 providers/google-adsense.php:81
msgid "Slot"
msgstr ""

#. Plugin Name of the plugin/theme
msgid "Ad Code Manager"
msgstr ""

#. #-#-#-#-# plugin.pot (Ad Code Manager 0.3-working) #-#-#-#-#
#. Plugin URI of the plugin/theme
#. #-#-#-#-# plugin.pot (Ad Code Manager 0.3-working) #-#-#-#-#
#. Author URI of the plugin/theme
msgid "http://automattic.com"
msgstr ""

#. Description of the plugin/theme
msgid "Easy ad code management"
msgstr ""

#. Author of the plugin/theme
msgid "Rinat Khaziev, Jeremy Felt, Daniel Bachhuber, Automattic, doejo"
msgstr ""

0 comments on commit afa7784

Please sign in to comment.