This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
721
The Pub / Re: Distributed Project Translation (Transifex)
« on June 4th, 2014, 09:23 AM »
Something that could handle creating or deleting arrays of internationalized numbered strings...?
722
The Pub / Re: Distributed Project Translation (Transifex)
« on June 4th, 2014, 01:02 AM »Not sure about the Array ..
Only 'fix' would be for Transifex to allow authors to determine that ALL strings should be translatable, unless they're matched by a regexp of our choice, for instance in our case, '\$txt\[[^]]+]'... And even then, it won't allow translators to add or remove elements of an array.
As such, I'm afraid Transifex isn't the right place to translate Wedge. Wedge is too smart for it...
723
Archived fixes / [Notifications] Re: links in notifications are gone
« on June 4th, 2014, 12:51 AM »
One of those topics I never read in the first place, eh...!
I've merged them both.
Hopefully fixed, now..?
I've merged them both.
Hopefully fixed, now..?
724
Features / Re: New revs
« on June 4th, 2014, 12:51 AM »
[Commit revision b0e0c47]
Author: Nao
Date: Tue, 03 Jun 2014 19:24:15 +0200
Stats: 1 file changed; +6 (insertions), -5 (deletions)
[Commit revision 05e76c9]
Author: Nao
Date: Tue, 03 Jun 2014 23:50:25 +0200
Stats: 1 file changed; +4 (insertions), -3 (deletions)
[Commit revision 030011b]
Author: Nao
Date: Wed, 04 Jun 2014 00:03:52 +0200
Stats: 1 file changed; +1 (insertion), -1 (deletion)
[Commit revision 06daf04]
Author: Nao
Date: Wed, 04 Jun 2014 00:05:10 +0200
Stats: 1 file changed; +1 (insertion), -1 (deletion)
[Commit revision 50a3205]
Author: Nao
Date: Wed, 04 Jun 2014 00:50:59 +0200
Stats: 1 file changed; +1 (insertion), -0 (deletion)
Date: Tue, 03 Jun 2014 19:24:15 +0200
Stats: 1 file changed; +6 (insertions), -5 (deletions)
- Wess didn't allow @if tests to evaluate lone variables as boolean if they were set to an empty string (e.g. $window_bg = '', @if $window_bg background: $window_bg @endif didn't work), while 'false' and '0' values worked fine. I like single-byte fixes. (Class-CSS.php)
- Still in Wess, non-math() functions were only allowed to use unit-less parameters, e.g. with $var = 6px, math($var / 3) was allowed, but round(math($var / 3)) wouldn't work because it was parsed to round(2px). It should now properly return '2px'. (Class-CSS.php)
[Commit revision 05e76c9]
Date: Tue, 03 Jun 2014 23:50:25 +0200
Stats: 1 file changed; +4 (insertions), -3 (deletions)
- Also applied previous emptiness fix to @elseif commands. (Class-CSS.php)
- Empty @elseif commands were internally seen as empty strings and explicitly seen as 'true', when I should have set them to 'true' directly, and ensured that an empty string is a no-go. This is more logical. (Class-CSS.php)
- Wess will now automatically dismiss properties with empty contents. For instance, "background: $bg" no longer needs to be enclosed in an "@if $bg" test to ensure skinners can disable the background. Please note that @if $bg would still be necessary in situations where the property uses the variable but adds something else to it, for instance "background: $bg, $bg2" or something like that. (Class-CSS.php)
- I've updated my CSS files to reflect this change, but they're not ready for commit right now, so it'll have to wait more.
[Commit revision 030011b]
Date: Wed, 04 Jun 2014 00:03:52 +0200
Stats: 1 file changed; +1 (insertion), -1 (deletion)
- Wrong language string. (ModerationCenter.template.php)
[Commit revision 06daf04]
Date: Wed, 04 Jun 2014 00:05:10 +0200
Stats: 1 file changed; +1 (insertion), -1 (deletion)
- Wow, a CSS typo! Woot! (mana.css)
[Commit revision 50a3205]
Date: Wed, 04 Jun 2014 00:50:59 +0200
Stats: 1 file changed; +1 (insertion), -0 (deletion)
- Moved topic notifications weren't outputting the proper URL in e-mails. (notifiers/Move.php)
725
Bug reports / [Proxy Settings] Re: X-Forwarded-For not recognized
« on June 3rd, 2014, 01:05 AM »
I understand, but I was just asking, what's best for users? What do you want me to do exactly..?
726
Archived fixes / Re: Install error get_preferred_language()
« on June 3rd, 2014, 01:03 AM »
Should be 100% fixed now, tested locally and fixed it (a last-minute change, as often with me... Please forbid me from doing last-minute changes in the future just for the sake of commititng cooler-looking code......)
PS: please refrain from marking a topic as fixed if it isn't 100% done, it could get confusing ;)
PS: please refrain from marking a topic as fixed if it isn't 100% done, it could get confusing ;)
727
Archived fixes / Re: Unable to click/hover on menus
« on June 3rd, 2014, 01:01 AM »
I'll be disabling the click problem soon.
This is all in script.js, in the mm() plugin. Just look for it.
First thing I did was to get rid of the 'plugin', and directly assign the search on $('.menu') items, in the only place where .mm() was called.
Then, I got rid of it entirely, and went for an alternative route: automatically hiding/showing menu items when leaving a page or landing on a page. Unfortunately, it doesn't seem to be working as well for me on Chrome, so again: will look into it tomorrow...
In the meantime, for the curious, I've uploaded that file on wedge.org, so you can test here if you want.
:edit: Working great on IE 10, for all I know...! :)
This is all in script.js, in the mm() plugin. Just look for it.
First thing I did was to get rid of the 'plugin', and directly assign the search on $('.menu') items, in the only place where .mm() was called.
Then, I got rid of it entirely, and went for an alternative route: automatically hiding/showing menu items when leaving a page or landing on a page. Unfortunately, it doesn't seem to be working as well for me on Chrome, so again: will look into it tomorrow...
In the meantime, for the curious, I've uploaded that file on wedge.org, so you can test here if you want.
:edit: Working great on IE 10, for all I know...! :)
728
Archived fixes / Re: domain-url without www make Server 500 error
« on June 3rd, 2014, 12:58 AM »
Don't waste your time on htaccess files...
The simple fact that it shows wwwRedirect in the URL means that there's a problem with the loadConstants function, in QueryString.php...
Interestingly, I fixed a bug precisely in that area earlier today (I only just committed it though), but it's not directly related to your problem. I found the bug when I tried to access my test forum from my girlfriend's laptop ('Penny Dreadful' was getting dreadfully boring), and it gave me strange graphics and broken links with... wwwRedirect in them.
I'm assuming that the bug is due to the fact that Wedge is built upon the fact that the board URL doesn't have a www in it, but adds a few lines of code to automatically change links to the subdomain-less version if you use www. However, I never tested the other way around....
I'll look into it tomorrow, it's bed time for me.
The simple fact that it shows wwwRedirect in the URL means that there's a problem with the loadConstants function, in QueryString.php...
Interestingly, I fixed a bug precisely in that area earlier today (I only just committed it though), but it's not directly related to your problem. I found the bug when I tried to access my test forum from my girlfriend's laptop ('Penny Dreadful' was getting dreadfully boring), and it gave me strange graphics and broken links with... wwwRedirect in them.
I'm assuming that the bug is due to the fact that Wedge is built upon the fact that the board URL doesn't have a www in it, but adds a few lines of code to automatically change links to the subdomain-less version if you use www. However, I never tested the other way around....
I'll look into it tomorrow, it's bed time for me.
729
Features / Re: New revs
« on June 3rd, 2014, 12:52 AM »
[Commit revision 237996d]
Author: Nao
Date: Tue, 03 Jun 2014 00:51:41 +0200
Stats: 1 file changed; +2 (insertions), -2 (deletions)
Date: Tue, 03 Jun 2014 00:51:41 +0200
Stats: 1 file changed; +2 (insertions), -2 (deletions)
- Fixed the ability to access a forum flawlessly through its IP address. (Needs testing with Pretty URLs enabled.) (QueryString.php)
730
Features / Re: New revs
« on June 2nd, 2014, 07:45 PM »
[Commit revision a05be18]
Author: Nao
Date: Mon, 02 Jun 2014 19:45:10 +0200
Stats: 1 file changed; +1 (insertion), -1 (deletion)
Date: Mon, 02 Jun 2014 19:45:10 +0200
Stats: 1 file changed; +1 (insertion), -1 (deletion)
- Last minute change caused installer not to try and recognize browser language preferences. (install.php)
731
Archived fixes / Re: Install error get_preferred_language()
« on June 2nd, 2014, 08:59 AM »
Gave you German...? :)
732
The Pub / Re: Distributed Project Translation (Transifex)
« on June 2nd, 2014, 01:37 AM »Can you give an example, please?
$txt['day_suffix'] = array(
'n' => '%sth',
1 => '1st',
2 => '2nd',
3 => '3rd',
21 => '21st',
22 => '22nd',
23 => '23rd',
31 => '31st',
);English and alternate language can both use either a simple string, or an array of strings.
It's a neat technique, isn't it..? But, it implies working from a PHP codebase when you're translating. :-/
different amount of strings in languageX vs. english? Not sure if it's possible.. I'd recommend to contact their support.
733
Archived fixes / Re: Install error get_preferred_language()
« on June 2nd, 2014, 12:03 AM »Edit:
OK, I have a another wedge git version from 29.05 .. no install issues
@Everyone, guys, can anyone take a few minutes to test the installer fix..?
I myself have been too busy reworking Weaving. And reworking all other skins in the process, since changing Weaving breaks them all a bit, ah ah...
734
Features / Re: New revs
« on June 1st, 2014, 05:37 PM »
[Commit revision e775f37]
Author: Nao
Date: Sun, 01 Jun 2014 17:37:37 +0200
Stats: 2 files changed; +21 (insertions), -16 (deletions)
Date: Sun, 01 Jun 2014 17:37:37 +0200
Stats: 2 files changed; +21 (insertions), -16 (deletions)
- Fixing installer crash, hopefully elegantly. (install.php, Class-System.php)
- If a language was stored in the session variable, disabling that language from the admin area would cause problems. (Class-System.php)
- Testing requested!
735
The Pub / Re: Distributed Project Translation (Transifex)
« on May 31st, 2014, 10:45 PM »
Thanks for sharing!
Do you think it's possible to force array() strings into the system, though..? There are so many of these strings, I don't see how I could do without them.
Even worse, Wedge allows creating arrays where the original English files don't have any. (For internationalization of numbered strings). I don't think there's a way to do that at all. Which makes me think the only right tool is github... Sucks eh?
Do you think it's possible to force array() strings into the system, though..? There are so many of these strings, I don't see how I could do without them.
Even worse, Wedge allows creating arrays where the original English files don't have any. (For internationalization of numbered strings). I don't think there's a way to do that at all. Which makes me think the only right tool is github... Sucks eh?