Jump to content

Hari KT

Members
  • Posts

    131
  • Joined

  • Last visited

Everything posted by Hari KT

  1. One solution I got from @ryan https://github.com/processwire/processwire-issues/issues/2037#issuecomment-2643216328 the most direct to me seems just to use a hook in `site/templates/admin.php` and apply the dir attribute with JS. 1. $wire->addHookAfter('ProcessPageEdit::execute', function(HookEvent $e) { $rtl = [ 'arabic', 'japanese' ]; $js = ''; foreach($e->wire()->languages as $l) { if(!in_array($l->name, $rtl)) continue; $js .= "$('.LanguageSupport[data-language=$l]').find('input[type=text],textarea').attr('dir', 'rtl');"; } if($js) $e->return .= "<script>$js</script>"; }); If you wanted it configurable with a checkbox on each language page (in Setup > Languages). Then you'd add a new checkbox field named "rtl" to your "language" template, and then use this code instead: 2. $wire->addHookAfter('ProcessPageEdit::execute', function(HookEvent $e) { $js = ''; foreach($e->wire()->languages as $l) { if(!$l->rtl) continue; $js .= "$('.LanguageSupport[data-language=$l]').find('input[type=text],textarea').attr('dir', 'rtl');"; } if($js) $e->return .= "<script>$js</script>"; }); I have used the 2nd option. Also The only issue now is the ckeditor / tinymce is not rtl. I want to find a way to fix that also.
  2. This is possible if we can add dir="rtl" inside the input element. Inorder for this to happen, when creating new language we need to define the direction as rtl. I have manually edited the input field and added dir=rtl .
  3. When adding a language from Setup > Languages , where can we specify the direction is RTL ? So that the input field values direction change. Basically I need to work on the Arabic language.
  4. Finally I fixed this manually checking the database. Some how the name* is not updating when we change name from the Setup > Languages. And the name1022 was null, so added ar to it and everything is showing up. I wonder this is a bug @Rayan
  5. I have installed https://processwire.com/download/site-profiles/#multi-language-site-profile version dev (3.0.245) and running on nginx. I have tried adding new language with name oh, but that is pointing to default language in front-end. Also tried editing existing language German de to ar Arabic. But this time the url appends 'de' and not 'ar' in the url. If we go to the About edit page , now we can see the "Oh" have no name appended. I have deleted sites/cache folder, but not reflecting the front-end . How to fix this ?
  6. Are you good in laravel blade ? I need a help writing an extension for blad : https://t.co/2CMFYleVeg . Related to https://t.co/YsqMoAKjdu

  7. RT @mholt6: I wrote about my experiences this week: "The Realities of Being a FOSS Maintainer" https://t.co/dOXXWDfg9A

  8. RT @matthiasnoback: Finally got around to watching "Extremely Defensive PHP" by @Ocramius; Nice talk! https://t.co/ifQ5BwTgV1

  9. RT @seldaek: Composer 1.5.2 is out - minor fixes except if you use GitLab a lot it's probably worth updating https://t.co/tHNpMXi5C6 #compo…

  10. RT @dbu: Tests are a bit slow, but hey, the, are green! https://t.co/RdJ0nL4Ot6

  11. @weaverryan cool. Good luck :) . Enjoy.

  12. RT @notajf: Is #PHP code with type declarations slower than code without? Well… https://t.co/lqRlzxyXRr

  13. RT @velmu: Oh, @typo3 is moving to Doctrine DBAL. A win for #PHP developers and the @doctrineorm project itself. https://t.co/enyTS4RmVi #…

  14. RT @Ocramius: Alright, doctrine/dbal 2.5.5 is out! https://t.co/YqJ8kCeW4q #doctrine2 #php

  15. RT @nomadphp: Lean about PHP Generators with this free video (Or you can buy it for $40, either is fine with us) :) https://t.co/SnICDpV…

  16. https://t.co/aRiTJRc6qP is about the article and video I am looking https://t.co/fJIy8dhV0o

  17. @chrisguitarguy what I wonder is when it is commented a piece of code how it works. Side note that piece only also works.

  18. RT @laravelphp: Laravel 5.3.8 released with new fakes for events, jobs, mail, and notifications! Who said testing had to be hard?! https://…

  19. @evertp and I hope, now you love PHP :) .

  20. RT @rasmus: It is time to start testing PHP 7.1. I have updated the php7dev vagrant image to it easier for you. https://t.co/Xyaqu0EIss

  21. RT @pmjones: We just released @auraphp Aura.SqlQuery 2.7.0 ! https://t.co/pUxNutIRkL

  22. @anandology Sorry I forgot you resigned.

  23. @jclermont thank you for the offer. I will ask in case if I make my hands dirty.

  24. @BoltCM no diff :-) . If the issue persists only for me you can ignore ;-) .

  25. RT @BEARSunday: Aspect oriented programing framework Ray.Aop v2.4.1 released. https://t.co/9Sl25WndJw

×
×
  • Create New...