Jump to content

slkwrm

PW-Moderators
  • Posts

    321
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by slkwrm

  1. It looks like we have very similar thoughts on this topic Edit: Apeisa, I visited Helsinki several days ago, great city, liked it so much, I wish I could stay there longer then just for one day.
  2. I'm also voting for a possibility of full translation with fallback to English, maybe add some guidelines on what are the modules essential for translation, or make something like core translations and optional translations. I found this question on stackoverflow about cyrillic characters and json, not sure whether it can be helpful, also found on php.net/json_encode that JSON_UNESCAPED_UNICODE as GGTR1138 already noticed is only for PHP 5.4.0, but there are some tips in comments on how to mimic this function in PHP 5.3. So maybe it will help. @Ryan Yes, I guess Russian is really fancy looking for everybody using latin symbols. I remember many times playng computer games I would run into some weird scriptures on walls of Russian villain's bases like "ЫЗДЦ" or "ЧУЦФАД". The funny thing they didn't mean anything and was there just to make player feel that they are in hostile Russian environment
  3. Here's my very first and not polished version of ru-RU translation. So, now you can enjoy all this cyrillic madness Ryan, I have a question. Is it possible to store cyrillic symbols without this transformstion to Unicode (?), so the json files are editable in any editor? It's not too much needed though. Update: I've just created a GitHub repo ProcessWire Russian Language Pack ru-RU where you can find the latest Russian language pack for PW's backend. Also attached a new version of the pack, but in future I won't be updating it here, so please download it from GitHub. slkwrm-ProcessWire-Russian-Language-Pack-ru-RU.zip
  4. Yes, I checked it and now I'm sure I use dev branch After this I've got: 10 files changed, 167 insertions, 60 delitions. It still doesn't work, I can assume it has something to do with Linux/Windows file formats or paths differences, but it's just guesses. Now I'm going to try fresh install. Thank you, Ryan
  5. @Ryan. Yes, translations are in the place and I have Spanish chosen in Profile. How can I check that I use correct branch? Because although I switched, I used Git for Windows, but I heard it's buggy. Is there any other way to download the dev version?
  6. @GGTR1138 Yes, I switched branch to dev. I'm a n00b as a Git user though, so maybe still doing something wrong. Can the possible cause be that I'm using XAMPP on Windows. Are there any Windows/XAMPP guys out there? Does everything work well for you?
  7. Very sexy site, Nikola. Great job! The only minor inconsistency I spotted is that "Rješenja i usluge" is a blank page with no content in it, so meybe you may consider redirecting visitors to the pages's first child or render it's children list in it's content.
  8. Hi, guys. I need your help. I installed the module, added a new language and imported Spanish translation (drug'n'dropped multiple json files), but after I switched to Spanish in Profile nothing happened, everything is still in English.
  9. Wow! This is great, Soma! Haven't been here for a while, guys. Hope I'll find a way to come here more frequently.
  10. Hi, Nichod and welcome to forums! This links can be helpful to start with. http://processwire.com/talk/index.php/topic,49.0.html http://processwire.com/talk/index.php/topic,76.msg405.html#msg405 http://processwire.com/talk/index.php/topic,307.0.html http://processwire.com/talk/index.php/topic,472.0.html http://processwire.com/talk/index.php/topic,80.0.html Also try to search forum. It contains lots of useful guidelines and snippets. Cheers
  11. Wow! Great stuff, Apeisa. Some very cool modules got released here recently. I will sure check it as soon as possible. Also, I hope it will help me understand how to write custom modules properly. Only 6 hours of development is pretty quick, I will definitely spend much more time developing my first module ;D
  12. Hi, Manddar Ryan posted thorough instructions how to do it some time ago. Read it here
  13. There is filter option at the top of the list of templates. Expand it and change "Show system templates?" to "yes".
  14. Thanks, Adam. Still, it's a good thing to remember in case some of your output's gone
  15. Ryan, doesn't it delete all the width=dd occurences on a page, not just in html attributes? Just in case.
  16. Hi, BDH and welcome to forums. What do you mean by "active"? Could you eleborate?
  17. If it's still relevant. I took Apeisa's code from the above-mentioned topic and modified it a bit and it seems to work the way you wanded, Soma <?php function treeMenu(Page $page = null, $depth = 1, $id = null) { $depth -= 1; if(is_null($page)) $page = wire('page'); if(!is_null($id)) $id = " id='$id'"; $out = "\n<ul$id>"; $parents = $page->parents; // This is where we get pages we want. You could just say template!=news-item foreach($page->children() as $child) { $class = "level-" . count($child->parents); $s = ''; if($child->numChildren && $depth > 0 ) { $s = str_replace("\n", "\n\t\t", treeMenu($child, $depth)); } $class .= " page-{$child->id}"; $class = " class='$class'"; $out .= "\n\t<li$class>\n\t\t<a$class href='{$child->url}'>{$child->title}</a>$s\n\t</li>"; } $out .= "\n</ul>"; return $out; } //parameters: current page, menu depth, ul menu id $menu = treeMenu($page, 3, "myMenu"); echo $menu; You shoud pass depth as a second parameter. By default it will output only one level. Edit: optimized code a bit
  18. Also, maybe you'll find this topic helpful.
  19. I agree generally, but the language used in this quote is pretty bad and harsh. It can push away people who come here for the first time. Let it be a little exception. So I edited my post too. Pete, your turn
  20. I'm also have a lot of respect towards MODx and its community. And I don't like comment like this guy made. It's just not right when people start critisizing the whole idea of something and being rude. Soma, could you delete the post with the quote, please? Let's keep the forum positive
  21. If it can be implemented as a module, then it could have two options: lock pages and restrict other users from editing lock pages and restrict other users from editing but allow unlocking after confirmation on a warning screen JS timeout approach is the best though
  22. Well, it's is not really polite expression. It translates like: *CENSORED* Edit: I deleted my comment with the quote and its translation to keep a forum clean from bad language.
  23. Just googled "strong API". Processwire.com is on the third place. Good start
×
×
  • Create New...