kingsinnersoul Posted July 4, 2010 Share Posted July 4, 2010 החנות שלי היא בשלוש שפות. ואני רוצה למקמם את המילה בצד הימני של הבלוק במקום השמאלי Link to comment Share on other sites More sharing options...
tomerg3 Posted July 5, 2010 Share Posted July 5, 2010 I don't have hebrew letter on my keyboard, so let me know if you don't understand anything...In the tpl file, you can do something like:{if $lang_iso == 'he'}hebrew formating and align{else}normal formating and align{/if} Link to comment Share on other sites More sharing options...
kingsinnersoul Posted July 5, 2010 Author Share Posted July 5, 2010 I will try it. Thanks for the effort of answering. I have no experience with smarty. Will let you know whether the code i used worked. Link to comment Share on other sites More sharing options...
kingsinnersoul Posted July 6, 2010 Author Share Posted July 6, 2010 ok, I hit a wall. I was trying what you offered in different variations - but all in vain. This is what I came with: add in global.css the formatting: #page_heb { width: 980px; margin: 0 auto 2px auto; text-align: right } then in header.tpl I changed line 43 from: To: I also tried : When using firebug I have noticed that the alignment is controlled by the #page compound. Changing it from left to right did the trick. But I do need it to be aligned to the left for the other languages. Could you please write me the line code in a proper way that will distinguish it when using hebrew?Thanks for the help. Link to comment Share on other sites More sharing options...
tomerg3 Posted July 6, 2010 Share Posted July 6, 2010 The correct way would be to create a copy of "page" in the css, and call it "page_he", give it that same settings as page, but with the correct align.Then in the tpl file use the if/else statement to print the id (page or page_he) Link to comment Share on other sites More sharing options...
kingsinnersoul Posted July 6, 2010 Author Share Posted July 6, 2010 Well, I got to work the way I wanted. I replaced the code in the header.tpl file with this code: Although it works, it confuses me. the above statement says: if the language iso is equal to 'he' then print id="page'... there is no otherwise else) statement. Is the above code is correct (it works, in correct i mean will work for all browsers and there will be no conflicts?)?Please educate me on this piece of code. maybe offer a better code? Link to comment Share on other sites More sharing options...
tomerg3 Posted July 7, 2010 Share Posted July 7, 2010 Link to comment Share on other sites More sharing options...
kingsinnersoul Posted July 7, 2010 Author Share Posted July 7, 2010 Toda Tomer for the code. I must wander why the code that i did (which is wrong) worked? Thanks again, you are a great help Link to comment Share on other sites More sharing options...
tomerg3 Posted July 7, 2010 Share Posted July 7, 2010 You were basically printing two id='' for hebrew, and while it may work for some browsers, it's not good practice. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now