The language used in adjusting the gears gears
Studied human data stored in the entries in the archive will appear in a wonderful list of Vigilance tracks that go to the appropriate search, it was one in the categories, the key words or by date. This is the screen output and linguistically appropriate, I have chosen the "dirty solution" * my output and phrases directly specified in the code. The individual adjustments would be in doubt, but not a big issue.
Here's my "dirty" solution * for the titles of the lists:
<?php if (have_posts()) : ?><!--replace german phrases with your own if necessary and modify the date display. english version for example F jS, Y which displays eg January 10th, 2009-->
<?php /* If this is a category archive */ if (is_category()) { ?>
<h1 class="pagetitle">Einträge der Kategorie ‘<?php single_cat_title(); ?>’</h1>
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
<h1 class="pagetitle">Mit ‘<?php single_tag_title(); ?>’ verschlagwortete Einträge</h1>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h1 class="pagetitle">Tagesarchiv vom <?php the_time('j. F Y'); ?></h1>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h1 class="pagetitle">Archiv des Monats <?php the_time('F Y'); ?></h1>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h1 class="pagetitle">Archiv des Jahres <?php the_time('Y'); ?></h1>
The adaptation to local conditions and personal and preferences is quite simple. After php the_time follow in parentheses (apostrophe at the beginning and do not forget at the end!) sequences of letters that encode the date. Participating for the examples I today's date.
-
j. FYj. FYis from 25 January 2009. -
F jS, Yindicates: January 10th, 2009.
The Enquiry appropriate list of entries have taken me, as she was, only the date has been aligned with local customs. <?php the_time('jny'); ?></span><?php the_title(); ?></a></li><!--modify the_time. english version for example njy--> <?php the_time('jny'); ?></span><?php the_title(); ?></a></li><!--modify the_time. english version for example njy-->
j for n date, month and year y. The solution is made up on the screen: 1/25/09.
* Oh yes, there was something open: Why dirty? You can write to program the themes so that they adapt universally and without any intervention of the blogger Wordpress language. This PHP section:
<php edit_post_link(__('Edit This')); ?> führt dazu, dass im Englischen “ Edit This ” ausgegeben wird, während in der deustchen Sprachversion “ Bearbeiten ” steht. (Here there was a lot of code garbage garbage code, thanks to which an acute fatigue I ist.Hätte happy as a witness clumsy brain acrobatics penetrate leave, but some browsers can be confused them. Gee whiz, here's went so haywire, I do not really know what this exactly is happening, but I'm writing nodded off several times ...) <php edit_post_link(__('Edit This')); ?> result, issued in English 'Edit This', while the germans Language "Edit" is. Quite handy, as long as no one wants to choose his own words. Who instead of "Recent Entries" or (And at this point, twice as a confused Department. Deleted for the same reasons. Was probably too little caffeine ... definitely not enough ...) "Newer Posts" prefer "older stuff" would be spent in better with the manual adjustment code . drive (Or rather not get around it.) And ultimately screwed together each one individually tailored version, which looks as automatic speech adaptation?















