[ABD]quicklanguage

Any abandoned Extensions will be moved to this forum.

WARNING: Extensions in this forum are not currently being supported or maintained by the original Extension author. Proceed at your own risk.
Forum rules
IMPORTANT: Extension Development Forum rules

WARNING: Extensions in this forum are not currently being supported nor updated by the original Extension author. Proceed at your own risk.
User avatar
Alg
Registered User
Posts: 76
Joined: Thu Aug 07, 2014 7:13 pm
Location: Israel
Contact:

Re: [dev]quicklanguage

Post by Alg »

Hi, ZNC! Turkey lang added
ZNC wrote:In Germany for nearly all sites it is necessary to use a legal notice like a imprint in newspapers and so on. In my special case I need for example a imprint in german and turkish, something like
...
You have a functionality called 'Hidden features ("Easter Egg")', something, which switches text between languages for static variables. Isn't it possible to increase this procedere? For example with the possiblity to set up like:

quicklanguage.php:

Code: Select all

$lang = array_merge($lang, array(
'QUICK_LANG_[customized variable]' => 'My individual text',
));
and in overall_header.html a new line like:

Code: Select all

<li>{QUICK_LANG_[customized variable]}</li>
For example in my case in the german quicklanguage.php:

Code: Select all

$lang = array_merge($lang, array(
'QUICK_LANG_IMPRINT' => '<a href=".../impressum.php" title="Impressum" lang="de">Impressum</a>',
));
and in the german quicklanguage.php:

Code: Select all

$lang = array_merge($lang, array(
'QUICK_LANG_IMPRINT' => '<a href=".../kuenye.php" title="Künye" lang="tr">Künye</a>',));
and in the overall_header.html a new line:

Code: Select all

<li>{QUICK_LANG_IMPRINT}</li>
So the multilingual requirements of your extension users will rounded off. Is that not possible?

best regards
Maybe I didn't understand you, but every lang variable works the same
User avatar
Alg
Registered User
Posts: 76
Joined: Thu Aug 07, 2014 7:13 pm
Location: Israel
Contact:

Re: [dev]quicklanguage

Post by Alg »

aduh wrote:Extension working fine on my forum however it's not working on news page (Board3 Portal):
http://www.2012apocalypse.pl/
Any idea how to fix that?
Thank you
you use style dark. maybe in this style some html-elements or classes are missing
firebug shows javascript error in your portal page
1

Code: Select all

className = tab.attr('class').split(' '),
2

Code: Select all

 parent.parent.insert_text(getParameter(document.location.href, "code"), true);
therefore further script will not work
User avatar
Alg
Registered User
Posts: 76
Joined: Thu Aug 07, 2014 7:13 pm
Location: Israel
Contact:

Re: [dev]quicklanguage

Post by Alg »

Hartenheer wrote:I have placed this extension.
As my forum was offline, with no error message
Please give more information!
What other exts installed on your board?
User avatar
Alg
Registered User
Posts: 76
Joined: Thu Aug 07, 2014 7:13 pm
Location: Israel
Contact:

Re: [dev]quicklanguage

Post by Alg »

aduh, try this
file forum_fn.js for style dark
find

Code: Select all

className = tab.attr('class').split(' '),
replace

Code: Select all

 if (tab.attr('class')) className = tab.attr('class').split(' '),
User avatar
aduh
Registered User
Posts: 215
Joined: Thu Jul 05, 2012 7:29 pm
Location: Poland
Name: Hans'
Contact:

Re: [dev]quicklanguage

Post by aduh »

Alg wrote:aduh, try this
file forum_fn.js for style dark
find

Code: Select all

className = tab.attr('class').split(' '),
replace

Code: Select all

 if (tab.attr('class')) className = tab.attr('class').split(' '),
Thank you it works :)
User avatar
aduh
Registered User
Posts: 215
Joined: Thu Jul 05, 2012 7:29 pm
Location: Poland
Name: Hans'
Contact:

Re: [dev]quicklanguage

Post by aduh »

Alg wrote:aduh, try this
file forum_fn.js for style dark
find

Code: Select all

className = tab.attr('class').split(' '),
replace

Code: Select all

 if (tab.attr('class')) className = tab.attr('class').split(' '),
Alg I'v noted that there is one problem after this mod. My style has build-in Collapsible Forum Categories:
Image
which isn't working anymore after those changes
Image
Can you help with this also?
User avatar
Alg
Registered User
Posts: 76
Joined: Thu Aug 07, 2014 7:13 pm
Location: Israel
Contact:

Re: [dev]quicklanguage

Post by Alg »

aduh, I don't see collaps categories on your forum as a guest
Do you have test account?
User avatar
aduh
Registered User
Posts: 215
Joined: Thu Jul 05, 2012 7:29 pm
Location: Poland
Name: Hans'
Contact:

Re: [dev]quicklanguage

Post by aduh »

Alg wrote:aduh, I don't see collaps categories on your forum as a guest
Do you have test account?
Alg it isn't working anymore after I'v used your instructions:
Alg wrote:aduh, try this
file forum_fn.js for style dark
find

Code: Select all

className = tab.attr('class').split(' '),
replace

Code: Select all

 if (tab.attr('class')) className = tab.attr('class').split(' '),
When I will change it back then colapps categories works but quicklanguage on portal isn't.
For now I preffer quicklanguage working on portal page thats why Im using your mod code.
User avatar
Alg
Registered User
Posts: 76
Joined: Thu Aug 07, 2014 7:13 pm
Location: Israel
Contact:

Re: [dev]quicklanguage

Post by Alg »

As I understand you set off collapse categories?
Can you return this and I'll try to help you
User avatar
aduh
Registered User
Posts: 215
Joined: Thu Jul 05, 2012 7:29 pm
Location: Poland
Name: Hans'
Contact:

Re: [dev]quicklanguage

Post by aduh »

Alg wrote:As I understand you set off collapse categories?
Can you return this and I'll try to help you
Alg collapse categories its not switchable. Its just implemented in style Im using:
https://www.phpbb.com/customise/db/styl ... elegance2/

I have reverse changes you advise me on previous posts and collapse categories are working again.
However my problem with not working quicklanguage on board3 page is back now.
User avatar
Alg
Registered User
Posts: 76
Joined: Thu Aug 07, 2014 7:13 pm
Location: Israel
Contact:

Re: [dev]quicklanguage

Post by Alg »

aduh, please, give me link on the style
User avatar
aduh
Registered User
Posts: 215
Joined: Thu Jul 05, 2012 7:29 pm
Location: Poland
Name: Hans'
Contact:

Re: [dev]quicklanguage

Post by aduh »

Alg wrote:aduh, please, give me link on the style
https://www.phpbb.com/customise/db/styl ... elegance2/
User avatar
Alg
Registered User
Posts: 76
Joined: Thu Aug 07, 2014 7:13 pm
Location: Israel
Contact:

Re: [dev]quicklanguage

Post by Alg »

are you sure? in a firebug I see the name of your style is dark
I installed style Elegance and I can't restore this bug on the page portal
I advise to set on extension in your portal and to add some rows for debug to get additional details

1. file forum_fn.js
find

Code: Select all

var tabs = $(this).children().children();
add after

Code: Select all

console.log(tabs);
console.log(tabs.not('.tab'));
2.in your index file
find

Code: Select all

 parent.parent.insert_text(getParameter(document.location.href, "code"), true);
add before

Code: Select all

console.log(parent);
console.log(parent.parent);
User avatar
aduh
Registered User
Posts: 215
Joined: Thu Jul 05, 2012 7:29 pm
Location: Poland
Name: Hans'
Contact:

Re: [dev]quicklanguage

Post by aduh »

Alg finaly I'v found the problem :) Its totaly not related to this mod. The problem was caused by missing .css strings on portal.css from custom side portal blocks (my bad). Its fixed now. Thank you for your help!
User avatar
Alg
Registered User
Posts: 76
Joined: Thu Aug 07, 2014 7:13 pm
Location: Israel
Contact:

Re: [dev]quicklanguage

Post by Alg »

It's cool! :)
Locked

Return to “Abandoned Extensions”