Skip to content

Commit afa7784

Browse files
i18n support
1 parent f5038e4 commit afa7784

File tree

3 files changed

+181
-5
lines changed

3 files changed

+181
-5
lines changed

ad-code-manager.php

100644100755
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,11 @@ function action_load_providers() {
146146
*/
147147
function action_init() {
148148

149+
load_plugin_textdomain( 'ad-code-manager', false, plugin_basename( dirname( __FILE__ ) ) . '/languages/' );
150+
149151
$this->post_type_labels = array(
150-
'name' => __( 'DFP Ad Codes' ),
151-
'singular_name' => __( 'DFP Ad Codes' ),
152+
'name' => __( 'Ad Codes', 'ad-code-manager' ),
153+
'singular_name' => __( 'Ad Code', 'ad-code-manager' ),
152154
);
153155

154156
// Allow other conditionals to be used

common/lib/acm-widget.php

100644100755
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ class ACM_Ad_Zones extends WP_Widget {
1111
function ACM_Ad_Zones() {
1212
$widget_ops = array(
1313
'classname' => 'acm_ad_zones',
14-
'description' => 'Display an Ad Code Manger ad zone within a widget area'
14+
'description' => __( 'Display an Ad Code Manger ad zone within a widget area', 'ad-code-manager' ),
1515
);
16-
$this->WP_Widget( 'ACM_Ad_Zones', 'Ad Code Manager Ad Zone', $widget_ops );
16+
$this->WP_Widget( 'ACM_Ad_Zones', __( 'Ad Code Manager Ad Zone', 'ad-code-manager' ), $widget_ops );
1717
}
1818

1919
// Build the widget settings form
@@ -43,7 +43,7 @@ function form( $instance ) {
4343
</select>
4444
<?php else: ?>
4545
<?php $create_url = add_query_arg( 'page', $ad_code_manager->plugin_slug, admin_url( 'tools.php' ) ); ?>
46-
<span class="description"><?php echo sprintf( __( "No ad codes have been added yet. <a href='%s'>Please create one</a>." ), $create_url ); ?></span>
46+
<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>
4747
<?php endif; ?>
4848
</p>
4949

languages/ad-code-manager.pot

Lines changed: 174 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,174 @@
1+
# Copyright (C) 2012 Ad Code Manager
2+
# This file is distributed under the same license as the Ad Code Manager package.
3+
msgid ""
4+
msgstr ""
5+
"Project-Id-Version: Ad Code Manager 0.3-working\n"
6+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/ad-code-manager\n"
7+
"POT-Creation-Date: 2012-10-26 01:27:39+00:00\n"
8+
"MIME-Version: 1.0\n"
9+
"Content-Type: text/plain; charset=UTF-8\n"
10+
"Content-Transfer-Encoding: 8bit\n"
11+
"PO-Revision-Date: 2012-MO-DA HO:MI+ZONE\n"
12+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13+
"Language-Team: LANGUAGE <[email protected]>\n"
14+
15+
#: ad-code-manager.php:152
16+
msgid "Ad Codes"
17+
msgstr ""
18+
19+
#: ad-code-manager.php:153
20+
msgid "Ad Code"
21+
msgstr ""
22+
23+
#: ad-code-manager.php:216
24+
msgid "Doing something fishy, eh?"
25+
msgstr ""
26+
27+
#: ad-code-manager.php:219
28+
msgid "You do not have the necessary permissions to perform this action"
29+
msgstr ""
30+
31+
#: common/lib/acm-provider.php:27 common/lib/acm-wp-list-table.php:31
32+
msgid "Name"
33+
msgstr ""
34+
35+
#: common/lib/acm-widget.php:14
36+
msgid "Display an Ad Code Manger ad zone within a widget area"
37+
msgstr ""
38+
39+
#: common/lib/acm-widget.php:16
40+
msgid "Ad Code Manager Ad Zone"
41+
msgstr ""
42+
43+
#: common/lib/acm-widget.php:46
44+
msgid "No ad codes have been added yet. <a href='%s'>Please create one</a>."
45+
msgstr ""
46+
47+
#: common/lib/acm-wp-list-table.php:30 common/lib/acm-wp-list-table.php:39
48+
#: providers/doubleclick-for-publishers.php:101
49+
#: providers/google-adsense.php:80
50+
msgid "ID"
51+
msgstr ""
52+
53+
#: common/lib/acm-wp-list-table.php:32 common/lib/acm-wp-list-table.php:43
54+
#: common/lib/acm-wp-list-table.php:232
55+
#: providers/doubleclick-for-publishers.php:104
56+
#: providers/google-adsense.php:82
57+
msgid "Priority"
58+
msgstr ""
59+
60+
#: common/lib/acm-wp-list-table.php:33 common/lib/acm-wp-list-table.php:44
61+
#: common/lib/acm-wp-list-table.php:237
62+
#: providers/doubleclick-for-publishers.php:105
63+
msgid "Logical Operator"
64+
msgstr ""
65+
66+
#: common/lib/acm-wp-list-table.php:34 common/lib/acm-wp-list-table.php:45
67+
#: common/lib/acm-wp-list-table.php:198
68+
#: common/views/ad-code-manager.tpl.php:73
69+
#: providers/doubleclick-for-publishers.php:106
70+
#: providers/google-adsense.php:83
71+
msgid "Conditionals"
72+
msgstr ""
73+
74+
#: common/lib/acm-wp-list-table.php:60 common/lib/acm-wp-list-table.php:296
75+
msgid "Delete"
76+
msgstr ""
77+
78+
#: common/lib/acm-wp-list-table.php:128
79+
msgid "No ad codes have been configured."
80+
msgstr ""
81+
82+
#: common/lib/acm-wp-list-table.php:205
83+
#: common/views/ad-code-manager.tpl.php:77
84+
msgid "Select conditional"
85+
msgstr ""
86+
87+
#: common/lib/acm-wp-list-table.php:217
88+
msgid "Add more"
89+
msgstr ""
90+
91+
#: common/lib/acm-wp-list-table.php:221
92+
msgid "URL Variables"
93+
msgstr ""
94+
95+
#: common/lib/acm-wp-list-table.php:240
96+
msgid "OR"
97+
msgstr ""
98+
99+
#: common/lib/acm-wp-list-table.php:241
100+
msgid "AND"
101+
msgstr ""
102+
103+
#: common/lib/acm-wp-list-table.php:269
104+
msgid "None"
105+
msgstr ""
106+
107+
#: common/lib/acm-wp-list-table.php:286
108+
msgid "Preview Ad Code"
109+
msgstr ""
110+
111+
#: common/lib/acm-wp-list-table.php:287
112+
msgid "Edit Ad Code"
113+
msgstr ""
114+
115+
#: common/lib/acm-wp-list-table.php:326
116+
msgid "Cancel"
117+
msgstr ""
118+
119+
#: common/lib/acm-wp-list-table.php:328
120+
msgid "Update"
121+
msgstr ""
122+
123+
#: common/views/ad-code-manager.tpl.php:11
124+
msgid "Ad code created."
125+
msgstr ""
126+
127+
#: common/views/ad-code-manager.tpl.php:14
128+
msgid "Ad code deleted."
129+
msgstr ""
130+
131+
#: common/views/ad-code-manager.tpl.php:17
132+
msgid "Ad codes deleted."
133+
msgstr ""
134+
135+
#: common/views/ad-code-manager.tpl.php:50
136+
#: common/views/ad-code-manager.tpl.php:95
137+
msgid "Add New Ad Code"
138+
msgstr ""
139+
140+
#: providers/doubleclick-for-publishers.php:67
141+
#: providers/doubleclick-for-publishers.php:102
142+
msgid "Site Name"
143+
msgstr ""
144+
145+
#: providers/doubleclick-for-publishers.php:73
146+
msgid "zone1"
147+
msgstr ""
148+
149+
#: providers/doubleclick-for-publishers.php:103
150+
msgid "Zone1"
151+
msgstr ""
152+
153+
#: providers/google-adsense.php:44 providers/google-adsense.php:81
154+
msgid "Slot"
155+
msgstr ""
156+
157+
#. Plugin Name of the plugin/theme
158+
msgid "Ad Code Manager"
159+
msgstr ""
160+
161+
#. #-#-#-#-# plugin.pot (Ad Code Manager 0.3-working) #-#-#-#-#
162+
#. Plugin URI of the plugin/theme
163+
#. #-#-#-#-# plugin.pot (Ad Code Manager 0.3-working) #-#-#-#-#
164+
#. Author URI of the plugin/theme
165+
msgid "http://automattic.com"
166+
msgstr ""
167+
168+
#. Description of the plugin/theme
169+
msgid "Easy ad code management"
170+
msgstr ""
171+
172+
#. Author of the plugin/theme
173+
msgid "Rinat Khaziev, Jeremy Felt, Daniel Bachhuber, Automattic, doejo"
174+
msgstr ""

0 commit comments

Comments
 (0)