Jump to content

Hari KT

Members
  • Posts

    131
  • Joined

  • Last visited

1 Follower

Contact Methods

  • Website URL
    https://tanvish.com/

Profile Information

  • Gender
    Male
  • Location
    Calicut, India
  • Interests
    PHP open-source, Internet and Technology. Building Tanvish Technologies.

Recent Profile Visitors

169,963 profile views

Hari KT's Achievements

Sr. Member

Sr. Member (5/6)

83

Reputation

2

Community Answers

  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…

×
×
  • Create New...