Skip to content
Permalink
Browse files

3.2.9.2 pre-release

  • Loading branch information...
johnclause committed Mar 26, 2015
1 parent da181c9 commit 83b4a9b513e623df3e9800888c742683c51eed6a
Showing with 13,193 additions and 9,092 deletions.
  1. +7 −0 admin/css/opHighlightMode/Border_Around.css
  2. +4 −0 admin/css/opHighlightMode/Left_Border.css
  3. +33 −0 admin/css/opLSBStyle/Simple_Buttons.css
  4. +52 −0 admin/css/opLSBStyle/Simple_Tabs.css
  5. +34 −0 admin/css/opLSBStyle/Tabs_in_Block.css
  6. +2 −1 { → admin/css}/qtranslate_configuration.css
  7. +9 −4 admin/js/common.js
  8. +1 −1 admin/js/common.min.js
  9. +114 −24 admin/{activation_hook.php → qtx_activation_hook.php}
  10. +42 −8 admin/{admin_utils.php → qtx_admin_utils.php}
  11. +284 −162 qtranslate_configuration.php → admin/qtx_configuration.php
  12. 0 admin/{import_export.php → qtx_import_export.php}
  13. +99 −0 admin/qtx_languages.php
  14. 0 admin/{update-gettext-db.php → qtx_update_gettext_db.php}
  15. +9 −4 qtranslate_user_options.php → admin/qtx_user_options.php
  16. +197 −0 dev/qtx-test-convertURL.php
  17. +16 −0 dev/qtx-test-date-time.php
  18. +15 −0 dev/qtx-tests.php
  19. +762 −576 lang/qtranslate-ar.po
  20. +397 −266 lang/qtranslate-az_AZ.po
  21. +397 −266 lang/qtranslate-bg_BG.po
  22. +395 −264 lang/qtranslate-cs_CZ.po
  23. +397 −266 lang/qtranslate-da_DK.po
  24. +396 −265 lang/qtranslate-de_DE.po
  25. +388 −258 lang/qtranslate-eo.po
  26. +397 −266 lang/qtranslate-es_CA.po
  27. +397 −266 lang/qtranslate-es_ES.po
  28. +394 −263 lang/qtranslate-fr_FR.po
  29. +396 −265 lang/qtranslate-hr_HR.po
  30. +394 −263 lang/qtranslate-hu_HU.po
  31. +397 −266 lang/qtranslate-id_ID.po
  32. +397 −266 lang/qtranslate-it_IT.po
  33. +397 −266 lang/qtranslate-ja_JP.po
  34. +397 −266 lang/qtranslate-mk_MK.po
  35. +397 −266 lang/qtranslate-ms_MY.po
  36. +524 −837 lang/qtranslate-nl_NL.po
  37. +397 −266 lang/qtranslate-pl_PL.po
  38. +393 −263 lang/qtranslate-pt_BR.po
  39. +392 −286 lang/qtranslate-pt_PT.po
  40. +397 −266 lang/qtranslate-ro_RO.po
  41. BIN lang/qtranslate-ru_RU.mo
  42. +397 −266 lang/qtranslate-ru_RU.po
  43. +401 −270 lang/qtranslate-sr_RS.po
  44. +392 −261 lang/qtranslate-sv_SE.po
  45. +397 −266 lang/qtranslate-tr_TR.po
  46. +397 −266 lang/qtranslate-zh_CN.po
  47. +386 −258 lang/qtranslate.pot
  48. +7 −465 qtranslate.php
  49. +83 −91 qtranslate_core.php
  50. +2 −13 qtranslate_hooks.php
  51. +607 −0 qtranslate_options.php
  52. +1 −0 qtranslate_utils.php
  53. +7 −0 readme.txt
@@ -0,0 +1,7 @@
/* Border Around */
input.qtranxs-translatable, textarea.qtranxs-translatable, div.qtranxs-translatable {
outline: 2px solid #Color2 !important;
}
div.qtranxs-translatable div.mce-panel {
margin-top: 2px
}
@@ -0,0 +1,4 @@
/* Left Border */
input.qtranxs-translatable, textarea.qtranxs-translatable, div.qtranxs-translatable {
box-shadow: -3px 0 #Color2 !important;
}
@@ -0,0 +1,33 @@
/* Language Switching Buttons as Simple Horizontal Block */

.qtranxs-lang-switch-wrap
{
//margin: 10px 0;
margin: 0;
}

.qtranxs-lang-switch
{
border: 1px solid #ccc;
background-image: linear-gradient(to top,#e5e5e5,#f4f4f4);
//margin-top: 2px;

This comment has been minimized.

@mweimerskirch

mweimerskirch Mar 26, 2015

Contributor

This is not valid CSS, comments in CSS have to use the syntax /* */

This comment has been minimized.

@johnclause

johnclause Mar 27, 2015

Author Member

OK, I changed it, thanks! But it seems to work anyway, and I did not see error messages anywhere. It is so difficult to maintain commenting out a bigger block then, since nested /**/ are not supported, or are they in css? I am thinking about using minimized CSS for production, then this would not be important.

//padding: 8px;
padding: 0 0 2px 4px;
margin: 0 4px 0 0;
cursor: default;
display: inline-block;
}

.qtranxs-lang-switch.active
{
border-color: #888;
background-image: none;
background-color: #bbb;
color: #555;
}

.qtranxs-lang-switch>*
{
vertical-align: middle;
margin-right: 4px;
}
@@ -0,0 +1,52 @@
/* Language Switching Buttons as Simple Tabs */

.qtranxs-lang-switch-wrap {
margin: 10px 0 10px;
position: relative;
}

.qtranxs-lang-switch-wrap:before{
position: absolute;
content: ' ';
bottom:0;
left:0;
right:0;
z-index: 1;
border-bottom: 1px solid #ccc;
}

.qtranxs-lang-switch-wrap li.qtranxs-lang-switch{
position: relative;
border-color: #ccc;
padding: 5px 5px;
cursor: pointer;
position: relative;
z-index: 2;
background: none;
margin-right: 2px;
line-height: 1.42857143;
border: 1px solid transparent;
border-radius: 4px 4px 0 0;
opacity: 0.8;
display: inline-block;
}

.qtranxs-lang-switch-wrap li.qtranxs-lang-switch:hover{
background: #e0e0e0;
opacity: 1;
}

.qtranxs-lang-switch-wrap li.qtranxs-lang-switch.active,
.qtranxs-lang-switch-wrap li.qtranxs-lang-switch.active:focus,
.qtranxs-lang-switch-wrap li.qtranxs-lang-switch.active:hover {
color: #555;
cursor: default;
background-color: #f1f1f1;
border: 1px solid #ccc;
border-bottom-color: transparent;
opacity: 1;
}

.qtranxs-lang-switch img {
margin-right: 4px;
}
@@ -0,0 +1,34 @@
/* Language Switching Buttons as Tabs in Black Block */

.qtranxs-lang-switch-wrap
{
//margin: 10px 0;
margin: 0;
}

.qtranxs-lang-switch
{
padding: 3px 8px 5px 8px;
margin: 6px 4px 0 4px;
display: inline-block;
}

.qtranxs-lang-switch
{
cursor: pointer;
}

.qtranxs-lang-switch>*
{
vertical-align: middle;
margin-right: 4px;
}

.qtranxs-lang-switch *
{
vertical-align: middle;
}

.qtranxs-lang-switch img {
margin-right: 4px;
}
@@ -86,7 +86,7 @@
}


/* Language Switching Buttons as horizontal block */
/* Language Switching Buttons as horizontal block
.qtranxs-lang-switch-wrap
{
@@ -119,6 +119,7 @@
vertical-align: middle;
margin-right: 4px;
}
*/

/* Language Switching Buttons as tabs *
@@ -873,7 +873,8 @@ var qTranslateX=function(pg)
}
for(var i=0; i < anchors.length; ++i){
var anchor = anchors[i];
var langSwitchWrap=qtranxj_ce('ul', {className: 'qtranxs-lang-switch-wrap'});
var langSwitchWrap=qtranxj_ce('ul', {className: qTranslateConfig.lsb_style_wrap_class});
//var langSwitchWrap=qtranxj_ce('ul', {className: 'qtranxs-lang-switch-wrap wp-ui-primary'});
//var header=w.getElementsByTagName('h2')[0];
//header.parentNode.insertBefore(langSwitchWrap, header.nextElementSibling);
anchor.parentNode.insertBefore( langSwitchWrap, anchor );
@@ -915,15 +916,19 @@ function qtranxj_LanguageSwitch(langSwitchWrap)
{
var tabSwitches = qTranslateConfig.tabSwitches[qTranslateConfig.activeLanguage];
for(var i=0; i < tabSwitches.length; ++i){
tabSwitches[i].classList.remove('active');
tabSwitches[i].classList.remove(qTranslateConfig.lsb_style_active_class);
//tabSwitches[i].classList.remove('active');
//tabSwitches[i].classList.remove('wp-ui-highlight');
}
//tabSwitches[qTranslateConfig.activeLanguage].classList.remove('active');
}
qTranslateConfig.activeLanguage=tabSwitch.lang;
{
var tabSwitches = qTranslateConfig.tabSwitches[qTranslateConfig.activeLanguage];
for(var i=0; i < tabSwitches.length; ++i){
tabSwitches[i].classList.add('active');
tabSwitches[i].classList.add(qTranslateConfig.lsb_style_active_class);
//tabSwitches[i].classList.add('active');
//tabSwitches[i].classList.add('wp-ui-highlight');
}
//tabSwitch.classList.add('active');
}
@@ -943,7 +948,7 @@ function qtranxj_LanguageSwitch(langSwitchWrap)
qtranxj_ce('img', {src: flag_location+qTranslateConfig.flag[lang]}, tabSwitch);
qtranxj_ce('span', {innerHTML: langNames[lang]}, tabSwitch);
if ( qTranslateConfig.activeLanguage == lang )
tabSwitch.classList.add('active');
tabSwitch.classList.add(qTranslateConfig.lsb_style_active_class);
if(!qTranslateConfig.tabSwitches[lang]) qTranslateConfig.tabSwitches[lang] = [];
qTranslateConfig.tabSwitches[lang].push(tabSwitch);
//tabSwitches[lang]=tabSwitch;

Large diffs are not rendered by default.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 83b4a9b

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.