Page 1 of 1

Plugin "bookstore" translation to German

Posted: Sat Jul 27, 2013 7:05 pm
by mhz
Hello,
in the stylesheet of the plugin "bookstore" I found these words, which I cannot read.
/* Image Enlarger
Код увеличителя начинается здесь.
Если ваше изображение не связано ссылкой с другой страницей,
оставьте ссылку в виде <a href="#nogo">
Иначе увеличитель не будет работать в IE6
*/
.ienlarger {
float: left;
clear: none; /* Можно установить left или right по необходимости */
padding-bottom: 5px; /* Расстояние между миниатюрами. Лучше не трогать данное поле */
padding-right: 5px; /* Расстояние между миниатюрами и окружающим текстом */
}
.ienlarger a {
cursor:default;
display:block;
text-decoration: none;
/* Если добавить правило cursor:default;, то отключится курсор в виде руки */
}
.ienlarger a:hover{ /* Не надо изменять тип позиционирования */
position:relative;
}
.ienlarger span img {
border: 1px solid #FFFFFF; /* Добавляем рамку вокруг изображения */
margin-bottom: 6px; /* /Сдвигаем текст вниз от изображения */
}
.ienlarger a span { /* Для большого изображения и названия */
position: absolute;
display:none;
color: #FFCC00; /* Текст названия */
text-decoration: none;
font-family: Arial, Helvetica, sans-serif;
font-size: 13px; /* Размер шрифта названия */
background-color: #000000;
font-weight: bold;
padding-top: 10px;
padding-right: 10px;
padding-bottom: 13px;
padding-left: 10px;
}
.ienlarger img { /* Для IE, чтобы не было рамки вокруг ссылки */
border-width: 0;
}
.ienlarger a:hover span {
display:block;
top: -349px; /* Большое изображение выскакивает вверх на 50px от миниатюры */
left: 50px; /* Большое изображение выскакивает влево на 50px от миниатюры */
z-index: 100;
/* Если добавить правило cursor:default;, то отключится курсор в виде руки на большом изображении */
}
.resize_thumb {
width: 50px; /* Вводим нужный размер миниатюры здесь */
height : auto;
}
/* end - Image Enlarger - Код увеличителя закончен */
Please, can somebody translate them?

Greetings
Michael

Это русский язык / It is the Russian language

Posted: Tue Jul 30, 2013 5:08 am
by Maxim
[ external image ] Здравствуйте.
Попробуйте так:

[ external image ] Guten Tag.
Versuchen Sie es so:
http://translate.yandex.net/tr-url/ru-d ... =39&t=6387

[ external image ] Hello.
Try this:
http://translate.yandex.net/tr-url/ru-e ... =39&t=6387

Re: Plugin "bookstore" translation to German

Posted: Tue Jul 30, 2013 8:53 am
by mhz
Hallo Maxim,

herzlichen Dank für die Deutsche Übersetzung. Leider funktioniert der Link für die englische Übersetzung nicht.
Thank you very much for the German translation. But the link for the English one is broken.

A lot of greetings
Michael

Re: Plugin "bookstore" translation to German

Posted: Tue Jul 30, 2013 12:17 pm
by cmb
mhz wrote:But the link for the English one is broken.
Works for me. :?

Re: Plugin "bookstore" translation to German

Posted: Tue Jul 30, 2013 12:39 pm
by mhz
Auf meiner Tutorial-Seite steht ein Paket mit der geänderten deutschen Stylesheet.css zum Download bereit. Leider gibt es immer noch russische Worte ...
Hier ein Screeshot: [ external image ]
Wo wird denn dieses ersetzt? Ich dachte, es wäre auch in der Stylesheet.css gewesen.

mhz

Re: Plugin "bookstore" translation to German

Posted: Tue Jul 30, 2013 10:31 pm
by cmb
mhz wrote:Wo wird denn dieses ersetzt? Ich dachte, es wäre auch in der Stylesheet.css gewesen.
Grundsätzlich wäre es keine gute Idee zu internationalisierende Texte in stylesheet.css anzugeben; dann wäre ein Plugin nur schwerlich für mehrsprachige Websites zu gebrauchen. Idealerweise sollten solche Texte in der Sprachkonfiguration untergebracht sein.

Bei Bookstore_XH 1.2 ist das leider für das Grid im Backend noch nicht erfolgt. In plugins/bookstore/index.php in Zeile 70f steht folgendes:

Code: Select all

  include_jQueryPlugin('tablePagination',
      $pth['folder']['plugins'] . 'bookstore/js/jtp/jquery.tablePagination.0.5.ru.js') . "\n";
Schaut man in dem entsprechenden Verzeichnis (plugins/bookstore/js/jtp/) nach, findet man dort bereits eine deutsche (.de. und englische .en.) Version. Dann kann man das wie folgt anpassen:

Code: Select all

  include_jQueryPlugin('tablePagination',
      $pth['folder']['plugins'] . 'bookstore/js/jtp/jquery.tablePagination.0.5.de.js') . "\n";
Für eine mehrsprachige Website könnte man folgendes machen:

Code: Select all

  include_jQueryPlugin('tablePagination',
      $pth['folder']['plugins'] . 'bookstore/js/jtp/jquery.tablePagination.0.5.' . $sl . '.js') . "\n";
(das funktioniert aber nur, wenn auch die benötigten Lokalisierungen als Datei vorhanden sind, und nicht für CMSimple_XH 1.5 Subsites)

Christoph