packages: wpmu-plugin-global-search/wpmu-plugin-global-search.spec, wpmu-pl...
glen
glen at pld-linux.org
Wed May 19 14:32:11 CEST 2010
Author: glen Date: Wed May 19 12:32:11 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- use translation not hardcode spanish
---- Files affected:
packages/wpmu-plugin-global-search:
wpmu-plugin-global-search.spec (1.3 -> 1.4) , localize.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/wpmu-plugin-global-search/wpmu-plugin-global-search.spec
diff -u packages/wpmu-plugin-global-search/wpmu-plugin-global-search.spec:1.3 packages/wpmu-plugin-global-search/wpmu-plugin-global-search.spec:1.4
--- packages/wpmu-plugin-global-search/wpmu-plugin-global-search.spec:1.3 Fri May 14 17:04:41 2010
+++ packages/wpmu-plugin-global-search/wpmu-plugin-global-search.spec Wed May 19 14:32:05 2010
@@ -3,11 +3,12 @@
Summary: WordPressMU Global Search
Name: wpmu-plugin-%{plugin}
Version: 1.1
-Release: 0.2
+Release: 0.3
License: GPL v2+
Group: Applications/Publishing
Source0: http://downloads.wordpress.org/plugin/wpmu-global-search.zip
# Source0-md5: 6132d081987834cc72412a7c92ba6853
+Patch0: localize.patch
URL: http://wordpress.org/extend/plugins/wpmu-global-search/
BuildRequires: rpmbuild(macros) >= 1.553
BuildRequires: sed >= 4.0
@@ -30,7 +31,7 @@
%prep
%setup -qn wpmu-%{plugin}
%undos readme.txt
-rm -f langs/*.pot langs/*.po
+%patch0 -p1
%install
rm -rf $RPM_BUILD_ROOT
@@ -38,6 +39,7 @@
cp -a . $RPM_BUILD_ROOT%{plugindir}
mv $RPM_BUILD_ROOT{%{plugindir},%{pluginsdir}}/wpmu-global-search-loader.php
rm $RPM_BUILD_ROOT%{plugindir}/readme.txt
+rm $RPM_BUILD_ROOT%{plugindir}/langs/{*.pot,*.po}
%clean
rm -rf $RPM_BUILD_ROOT
@@ -54,6 +56,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.4 2010/05/19 12:32:05 glen
+- use translation not hardcode spanish
+
Revision 1.3 2010/05/14 15:04:41 sparky
- BR: unzip
================================================================
Index: packages/wpmu-plugin-global-search/localize.patch
diff -u /dev/null packages/wpmu-plugin-global-search/localize.patch:1.1
--- /dev/null Wed May 19 14:32:11 2010
+++ packages/wpmu-plugin-global-search/localize.patch Wed May 19 14:32:05 2010
@@ -0,0 +1,47 @@
+--- wpmu-global-search/includes/functions.php~ 2010-04-16 19:07:18.000000000 +0300
++++ wpmu-global-search/includes/functions.php 2010-05-19 15:19:21.394073196 +0300
+@@ -90,7 +90,7 @@
+ return $before . apply_filters( 'edit_post_link', $link, $s->ID ) . $after;
+ }
+
+-function wpmu_globalsearch_get_comments_link($s, $zero = 'No Comments', $one = '1 Comment', $more = '% Comments', $css_class = '', $none = 'Comments Off' ) {
++function wpmu_globalsearch_get_comments_link($s, $css_class = '', $none = 'Comments Off' ) {
+ global $wpcommentsjavascript, $wpcommentspopupfile;
+
+ $number = $s->comment_count;
+@@ -129,12 +129,8 @@
+ echo apply_filters( 'comments_popup_link_attributes', '' );
+
+ echo ' title="' . sprintf( __('Comment on %s'), $title ) . '">';
+- if ( $number > 1 )
+- $output = str_replace('%', number_format_i18n($number), ( false === $more ) ? __('% Comments') : $more);
+- elseif ( $number == 0 )
+- $output = ( false === $zero ) ? __('No Comments') : $zero;
+- else // must be one
+- $output = ( false === $one ) ? __('1 Comment') : $one;
++
++ $output = sprintf(_n('%s Comment', '%s Comments', $number), number_format_i18n($number));
+
+ echo apply_filters('comments_number', $output, $number);
+ echo '</a>';
+--- wpmu-global-search/wpmu-global-search.php~ 2010-04-16 19:07:18.000000000 +0300
++++ wpmu-global-search/wpmu-global-search.php 2010-05-19 15:19:21.394073196 +0300
+@@ -175,7 +175,7 @@
+
+ <div class="postmetadatasearch">
+ <small class="comments">
+- <?php wpmu_globalsearch_get_comments_link($s, 'Sin comentarios', '1 Comentario', '% Comentarios'); ?>
++ <?php wpmu_globalsearch_get_comments_link($s); ?>
+ </small>
+ </div>
+ </div>
+--- wpmu-global-search/langs/wpmu-global-search.pot~ 2010-04-16 19:07:18.000000000 +0300
++++ wpmu-global-search/langs/wpmu-global-search.pot 2010-05-19 15:22:27.977374293 +0300
+@@ -47,3 +47,7 @@
+ #: usal-wpmu-search.php:157 usal-wpmu-search.php:191
+ msgid "Sorry, but you are looking for something that isn't her"
+ msgstr ""
++
++#, php-format
++msgid "%s Comment"
++msgid_plural "%s Comments"
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/wpmu-plugin-global-search/wpmu-plugin-global-search.spec?r1=1.3&r2=1.4&f=u
More information about the pld-cvs-commit
mailing list