<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://fbb.just4test.de/extern.php?action=feed&amp;tid=4351&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Informationen für CMS/made simple / Sprachsteuerung CGCalendar]]></title>
		<link>http://www.cmsmadesimple.de/forum/viewtopic.php?id=4351</link>
		<description><![CDATA[Die aktuellsten Beiträge in Sprachsteuerung CGCalendar.]]></description>
		<lastBuildDate>Sat, 18 Apr 2015 08:57:10 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Sprachsteuerung CGCalendar]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=34301#p34301</link>
			<description><![CDATA[<p><span class="bbs">Änderung des PHP Codes ist hier nicht nötig. CGCalendar (bzw. CGExtensions) übergibt die komplette $lang-Variable an Smarty. Wenn also einige Texte nicht übersetzt werden, dann heißt das Stichwort <a href="http://forum.cmsmadesimple.de/viewtopic.php?id=500" rel="nofollow">&quot;module_custom&quot;</a>.</span></p><p>Nee, quatsch! Bringt hier wirklich nichts. Cyberman hat Recht. Ich dachte, es wird die $lang-Variable aus der Sprachdatei an Smarty zugewiesen. Es ist aber eine eigene Variable, die im Modul nur mit bestimmten Werten gefüllt wird.</p><p>Aber im Calendar-Template ist eine Variable namens {$mod} verfügbar. Das ist das komplette Calendar-Modul. Darüber kannst Du auf die Sprachdatei des Moduls zugreifen:</p><div class="codebox"><pre><code>{$mod-&gt;lang(&#039;cal_date&#039;)}</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (NaN)]]></author>
			<pubDate>Sat, 18 Apr 2015 08:57:10 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=34301#p34301</guid>
		</item>
		<item>
			<title><![CDATA[Re: Sprachsteuerung CGCalendar]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=34299#p34299</link>
			<description><![CDATA[<p>Leider nur offtopic aber der Titel vom Thread brachte mich zum Schmunzeln. In der heutigen Zeit weiß man ja nie was man alles mit seiner Sprache steuern kann <img src="http://www.cmsmadesimple.de/forum/plugins/ezbbc/style/smilies/big_smile.png" alt="big_smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (nicmare)]]></author>
			<pubDate>Sat, 18 Apr 2015 08:43:24 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=34299#p34299</guid>
		</item>
		<item>
			<title><![CDATA[Re: Sprachsteuerung CGCalendar]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=34297#p34297</link>
			<description><![CDATA[<p>Das ist relativ einfach zu erklären - die Sprachvariable $lang wird nicht pauschal komplett in Smarty inkludiert, sondern muss noch PHP-seitig für jedes einzelne Element separat an Smarty zugewiesen werden, also in etwa so</p><div class="codebox"><pre><code>[== php ==]
$smarty-&gt;assign(&#039;label_location&#039;, $lang[&#039;cal_location&#039;])</code></pre></div><p>Erst dann kannst du es im Template via</p><div class="codebox"><pre><code>{$label_location} </code></pre></div><p>verwenden.</p>]]></description>
			<author><![CDATA[dummy@example.com (cyberman)]]></author>
			<pubDate>Sat, 18 Apr 2015 03:25:44 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=34297#p34297</guid>
		</item>
		<item>
			<title><![CDATA[Sprachsteuerung CGCalendar]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=34295#p34295</link>
			<description><![CDATA[<p>Hallo liebe CMSMSler,</p><p>ich habe ein Problem mit CGCalendar. Ich verwende in meinem Template &quot;Vorlage für bestehende Termine&quot; ein paar eigene Sprachvariablen definiert:</p><div class="codebox"><pre><code>[== php ==]
&lt;div class=&quot;cal-upcominglist&quot;&gt; {if isset($pastitems) &amp;&amp; $pastitems == 1} &lt;h1&gt;{$lang.past_events}&lt;/h1&gt; {else} &lt;h1&gt;{$lang.upcoming_events}&lt;/h1&gt; {/if} &lt;/div&gt;                                                          &lt;div class=&quot;calendar-list&quot;&gt; {if isset($navigation)} {if isset($navigation.prev)}&lt;span class=&quot;calendar-prev&quot;&gt;&lt;a href=&quot;{$navigation.prev}&quot;&gt;{$lang.prev}&lt;/a&gt;&lt;/span&gt;{/if} &amp;nbsp; &amp;nbsp;{if isset($navigation.next)}&lt;span class=&quot;calendar-next&quot;&gt;&lt;a href=&quot;{$navigation.next}&quot;&gt;{$lang.next}&lt;/a&gt;&lt;/span&gt;{/if} {/if}  {if isset($start_date_ut) &amp;&amp; isset($end_date_ut)} &lt;h3&gt;{$start_date_ut|date_format:&#039;%x&#039;} {$lang.to} {$end_date_ut|date_format:&#039;%x&#039;}&lt;/h3&gt; {if isset($navigation.current)}&lt;p&gt;&lt;a href=&quot;{$navigation.current}&quot;&gt;{$lang.current}&lt;/a&gt;&lt;/p&gt;{/if} {else} &lt;h1&gt;{if isset($day) &amp;&amp; $day &gt; 0}{$day} {/if}{if isset($month) &amp;&amp; $month &gt; 0}{$month_names[$month]}{/if} {$year}&lt;/h1&gt; {/if} {foreach from=$events key=key item=event}   &lt;div class=&quot;calendar-event&quot;&gt;   &lt;h3&gt;{$event.event_title}&lt;/h3&gt;    {assign var=month_number value=$event.event_date_start|date_format:&quot;%m&quot;}   {assign var=end_month_number value=$event.event_date_end|date_format:&quot;%m&quot;}   {if $event.event_date_start == $event.event_date_end || $event.event_date_end == 0}     &lt;div class=&quot;calendar-date-from&quot;&gt;{$lang.date}: {$event.event_date_start|date_format:&quot;%A, %d. %B %Y&quot;} &lt;div&gt;{$lang.to}: {$event.event_date_start|date_format:&quot;%H:%M&quot;}&lt;/div&gt;&lt;div&gt;{$lang.location}: {$event.fields.Ort}&lt;/div&gt;&lt;div&gt;{$lang.public}: {$event.fields.Oeffentlich}&lt;/div&gt;&lt;/div&gt;   {else}     {if $event.event_date_start|date_format:&quot;%d%m%Y&quot; == $event.event_date_end|date_format:&quot;%d%m%Y&quot;}       &lt;div class=&quot;calendar-date-from&quot;&gt;{$lang.date}: {$event.event_date_start|date_format:&quot;%A, %d. %B %Y&quot;} &lt;div&gt;{$lang.time}: {$event.event_date_start|date_format:&quot;%H:%M&quot;} {$lang.to} {$event.event_date_end|date_format:&quot;%H:%M&quot;}&lt;/div&gt; &lt;div&gt;{$lang.location}: {$event.fields.Ort}&lt;/div&gt;&lt;div&gt;{$lang.public}: {$event.fields.Oeffentlich}&lt;/div&gt;&lt;/div&gt;     {else}       &lt;div class=&quot;calendar-date-from&quot;&gt;{$lang.date}: {$event.event_date_start|date_format:&quot;%A, %d. %B&quot;} {$lang.to} {$event.event_date_end|date_format:&quot;%A, %d. %B %Y&quot;} &lt;div&gt;{$lang.time}: jeweils {$event.event_date_start|date_format:&quot;%H:%M&quot;} {$lang.to} {$event.event_date_end|date_format:&quot;%H:%M&quot;}&lt;/div&gt; &lt;div&gt;{$lang.location}: {$event.fields.Ort}&lt;/div&gt;&lt;div&gt;{$lang.public}: {$event.fields.Oeffentlich}&lt;/div&gt;&lt;/div&gt;     {/if}   {/if}   {$details=$event.event_details|strip_tags|trim}   {if $event.event_summary != &#039;&#039; &amp;&amp; $details != &#039;&#039;}&lt;br /&gt;     &lt;div class=&quot;calendar-summary&quot;&gt;&lt;span class=&quot;calendar-summary-title&quot;&gt;{$lang.summary}: &lt;/span&gt;{$event.event_summary}&lt;/div&gt;   {/if}   {* optionally display detail information   {if $details != &#039;&#039;}     &lt;div class=&quot;calendar-details&quot;&gt;&lt;span class=&quot;calendar-details-title&quot;&gt;{$lang.details}: &lt;/span&gt;{$event.event_details}&lt;/div&gt;   {/if}   *}   &lt;a href=&quot;{$event.url}&quot;&gt;{$mod-&gt;Lang(&#039;cal_more&#039;)}&lt;/a&gt;   &lt;/div&gt; {/foreach} &lt;/div&gt;</code></pre></div><p>Die Sprachvariablen sind {$lang.time}, {$lang.location} und {$lang.public}. Diese habe ich auch entsprechend in der PHP-Datei im Ordner &quot;lang&quot; des Moduls CGCalendar hinterlegt (Zeile 481-483), Datei nachfolgend: <a href="http://forum.cmsmadesimple.de/img/members/4508/de_DE.zip" rel="nofollow">de_DE.zip</a></p><p>Jedoch werden die Sprachvariablen, also &quot;Ort&quot;, &quot;Uhrzeit&quot; und &quot;Öffentlich für Gäste&quot; nicht auf meiner Seite angezeigt, obwohl die Variablen dem gleichen Muster folgen wie bspw. &quot;Datum&quot; ($lang[&#039;cal_date&#039;]). Das Datum als vordefiniertes Feld wird angegeben.</p><p>Ich kann mir nicht erklären, warum das nicht funktioniert. Könnt Ihr mir hier weiterhelfen?</p><p>Danke und viele Grüße,<br />olihc</p>]]></description>
			<author><![CDATA[dummy@example.com (olihc)]]></author>
			<pubDate>Fri, 17 Apr 2015 19:39:45 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=34295#p34295</guid>
		</item>
	</channel>
</rss>
