-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

2012.04.19 18:42, gymka rašė:
> 2012.04.19 18:27, gymka rašė:
>> 2012.04.19 18:13, Nick Schermer rašė:
>>> On 2012-04-19 16:53, Chipong Luo wrote:
>>>> On Thu, 2012-04-19 at 15:42 +0300, gymka wrote:
>>>>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>>>>> 
>>>>> 2012.04.19 15:37, Chipong Luo rašė:
>>>>>> On Thu, 2012-04-19 at 21:29 +0900, Seong-ho Cho wrote:
>>>>>>> well, you may search using string "#: 
>>>>>>> getinvolved/translation.php:3" for translating 
>>>>>>> "Translation" msgid after downloading po file. Of 
>>>>>>> course, you can use text editor to find that string.
>>>>>>> 
>>>>>>> anyway, what do you mean about "Bugs" ? maybe ... is
>>>>>>> "Bug Tracker" right?
>>>>>> 
>>>>>> On the upper right of every page there are "Home",
>>>>>> "Docs", "Archive"...
>>>>>> 
>>>>>> It seems that "Bugs" and "Translate" are missed which 
>>>>>> should be translatable.
>>>>>> 
>>>>>> 
>>>>>>> 2012/4/19 Chipong Luo <chipong....@yahoo.com>:
>>>>>>>> Hi everyone,
>>>>>>>> 
>>>>>>>> No "Bugs", "Translate" on the upper right.
>>>>> 
>>>>> you CAN translate others?(i mean docs, home, archive) you 
>>>>> can't translate only two? in my pot all these is not 
>>>>> translatable.
>>>> 
>>>> I cannot,either.
> 
>>> I did this on purpose because the header is used across the 
>>> various subdomain where we don't have the possibility to use 
>>> translated strings.
> 
> 
>> so add something like: 
>> if($_SERVER['HTTP_HOST']=='www-test.xfce.org') { echo 
>> $translatable_header; } else { echo 
>> $not_translatable_header-just_like_in_all_other_subdomains; }
> 
> examples from life: 1. http://smplayer.sourceforge.net/ header is
> translated and everythere is shown translated even forum, feature
> requests, bug reports, etc. is not translated. 2.
> http://l10n.gnome.org/teams/lt/ gnome translation site, in
> Lithuanian page everything is translated, but if press on header
> links you go to not translated site and header becomes not
> translated.
> 
> 

not perfect, but working(at least i think so) patch for my thought
about localized header.


- -- 
gymka
GPG ID: 21C70548
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)

iQEcBAEBAgAGBQJPkEJAAAoJEAVeyH4hxwVIIe8H/R1LGS1U9sJ4EYnOFRY5QsE3
IR3hKCXby+w+6mVZO0eu8WzgLsPmCMeEe6GNxZ944kTsi2dHasQDLkFDOUcaiP80
AR7/rvkJVmqNIIne+F7tq1ViVeRFWl0F5tFFw0+ID2xGAfNaqbCdgjVoX/uZ+9l/
0eENDM4gjnnER9AN2LUqoqpj7F1GT0YDeo0yaQ4Fz6k4aWS+r9R1Gv12nlF0CAA9
A8FqsDkazT4w5ogUncKpNw4D7OyBTS6xypDOJuZuDht8mcM5MFA/17pJPrW8GmpH
u3+SoOV+N1VN0wJO/tzAGEYdBns99iODHnI4bkRGHra1632weeo+kkgGZk+WtX4=
=jk3y
-----END PGP SIGNATURE-----
--- www.xfce.org/pages/header.php	2012-04-19 19:43:45.165258435 +0300
+++ header.php	2012-04-19 19:42:37.592970292 +0300
@@ -33,7 +33,15 @@
 		<h5 id="xfce-header-subtitle">Sub domains</h5>
 		&nbsp;
 		<ul>
-			<li><a href="http://www.xfce.org"; title="Go to the homepage" class="active">Home</a></li>
+		<?php if($_SERVER['HTTP_HOST']=='www-test.xfce.org') { echo '<li><a href="http://www.xfce.org"; title="Go to the homepage" class="active">'; E_('Home'); 
+echo '</a></li>		<li><a href="http://docs.xfce.org"; title="Official documentation">'; E_('Docs'); echo '</a></li>
+			<li><a href="http://archive.xfce.org"; title="Download location of tarballs">'; E_('Archive'); echo '</a></li>
+			<li><a href="http://wiki.xfce.org"; title="Community documentation">'; E_('Wiki'); echo '</a></li>
+			<li><a href="http://forum.xfce.org"; title="Community forums">'; E_('Forum'); echo '</a></li>
+			<li><a href="https://bugzilla.xfce.org"; title="Report and track bugs">'; E_('Bugs'); echo '</a></li>
+			<li><a href="http://blog.xfce.org"; title="Visit the blog">'; E_('Blog'); echo '</a></li>
+			<li><a href="https://translations.xfce.org"; title="Help translating the Xfce project">'; E_('Translate'); echo '</a></li>
+			<li><a href="http://git.xfce.org"; title="Project repositories">'; E_('GIT'); echo '</a></li>'; } else { echo '<li><a href="http://www.xfce.org"; title="Go to the homepage" class="active">Home</a></li>
 			<li><a href="http://docs.xfce.org"; title="Official documentation">Docs</a></li>
 			<li><a href="http://archive.xfce.org"; title="Download location of tarballs">Archive</a></li>
 			<li><a href="http://wiki.xfce.org"; title="Community documentation">Wiki</a></li>
@@ -41,7 +49,7 @@
 			<li><a href="https://bugzilla.xfce.org"; title="Report and track bugs">Bugs</a></li>
 			<li><a href="http://blog.xfce.org"; title="Visit the blog">Blog</a></li>
 			<li><a href="https://translations.xfce.org"; title="Help translating the Xfce project">Translate</a></li>
-			<li><a href="http://git.xfce.org"; title="Project repositories">GIT</a></li>
+			<li><a href="http://git.xfce.org"; title="Project repositories">GIT</a></li>'; } ?>
 		</ul>
 	</div>
 	<div  id="xfce-header-clear"></div>

Attachment: 0x21C70548.asc
Description: application/pgp-keys

_______________________________________________
Xfce-i18n mailing list
Xfce-i18n@xfce.org
https://mail.xfce.org/mailman/listinfo/xfce-i18n

Reply via email to