facebook_icon

Khmer (Cambodia)

បន្ថែម​ទីតាំង​ម៉ូឌុល​ថ្មី​សម្រាប់​កន្លែង​ជ្រើស​ភាសា​ JoomFish

ក្នុង​បណ្ដា​ពុម្ព​ទាំងឡាយ​របស់​ជុំឡា​តែង​ភ្ជាប់​មក​ជាមួយ​នូវ​ទីតាំង​ម៉ូឌុល​ជាច្រើន​ផ្សេងៗ​គ្នា​ដូច​ជា៖

  • debug (ទីតាំង​បង្ហាញ​កំហុស)
  • breadcrumb (ទីតាំង​ទំព័រ)
  • footer (បាតកឋា)
  • left (ឆ្វេង)
  • right (ស្ដាំ)
  • syndicate
  • user1-2-3...
  • top (កំពូល)
  • ...

ប៉ុន្តែ​ក្នុង​ចំណោម​ទីតាំង​ទាំង​នោះ​អាច​ពុំ​មែន​ជា​ទីតាំង​ដែល​សម​តាម​បំណង​លោក​អ្នក​ប្រាថ្នា​ចង់​បាន ។

ខាង​ក្រោម​នេះ​យើង​នឹង​បន្ថែម​ទីតាំង​ម៉ូឌុល​មួយ​ឈ្មោះ​ថា "jf-lang-selection" ក្នុង​គោល​បំណង​សម្រាប់​ដាក់​ម៉ូឌុល​ជ្រើសរើស ឬ​ប្ដូរ​ភាសា​របស់​ សមាសភាគ​ជុំឡា​មួយ​ឈ្មោះ​ថា JoomFish ។

កែសម្រួល index.php របស់​ពុម្ព​ជុំឡា​ដោយ​បន្ថែម​ទីតាំង​ម៉ូឌុល​ថ្មី

  • កត់ត្រា​ចូល​ឆាក​ខាងក្រោយ​របស់​ជុំឡា​អ្នក
  • សមាសភាគ (Extensions) → កម្មវិធី​គ្រប់គ្រង​ពុម្ព (Template Manager)
  • ត្រង់​ឈ្មោះ​ពុម្ព (Template Name) សូម​ចុច​លើ​ឈ្មោះ​ពុម្ព​ណា​មួយ​ដែល​អ្នក​ចង់​បន្ថែម​ទីតាំង​ម៉ូឌុល (ឧទា. rhuk_milkyway) រួច​ចុច​លើ​ប៊ូតុង កែសម្រួល HTML (Edit HTML)

បន្ថែម​កូដ​ម៉ូឌុល​ថ្មី​ទៅ​ក្នុង index.php របស់​ពុម្ព​ជុំឡា

សូម​បន្ថែម​កូដ​ខាង​ក្រោម​នៅ​កន្លែង​ដែល​សម​គួរ​ក្នុង​ចន្លោះរវាង <body>...</body> (ស្ថិត​ក្រោម​ម៉ូឌុល​ user4)

<div id="search">
 <jdoc:include type="modules" name="user4" />
 </div>
<div id="language-flag" style="position: fixed; right: 0; top: 45%; visibility: visible;">
 <jdoc:include type="modules" name="jf-lang-selection" />
 </div>

ក្នុង​ករណី​ដែល​អ្នក​ពុំ​បាន​ប្រើ​ប្រាស់​ទី​តាំង​បង្កើត​ថ្មី​នេះ ឬ​ពុំ​បាន​ចាត់តាំង​ម៉ូឌុល​នេះ​ឱ្យ​បង្ហាញ​​នៅ​ម៉ឺនុយ​​មួយ​ចំនួន​ ពេល​នោះ​​វា​នឹង​បង្ហាញ​កូដ​ដូច​ខាង​ក្រោម៖

<div id="language-flag" style="position: fixed; right: 0; top: 45%; visibility: visible;">
 
</div>

ហេតុ​ដូច​ច្នេះ​ដើម្បី​ជៀសវាង​ការ​ផ្ទុក​កូដ​ម៉ូឌុល​ចុះ​ ដោយ​ឥត​ប្រយោជន៍​ក្នុង​ករណី​ខាង​លើ​យើង​អាច​បន្ថែម​ដូច​ PHP ដូច​តទៅ៖

<div id="search">
    <jdoc:include type="modules" name="user4" />
 </div>
 <?php if ($this->countModules( 'jf-lang-selection' ) > 0) { ?>
 <div id="language-flag" style="position: fixed; right: 0; top: 45%; visibility: visible;">
    <jdoc:include type="modules" name="jf-lang-selection" />
 </div>  
 <?php } ?>

មាន​ន័យ​ថា​ក្នុង​ករណី​ពុំ​មែន​វត្តមាន​នៃ​ទីតាំង​ម៉ូឌុល​ jf-lang-selection ទេ​ នោះ​នឹង​ពុំ​បង្ហាញ​កូដ​ដែល​ពុំ​ចាំបាច់​ឡើយ ។

ពន្យល់​អំពី​​រចនាប័ទ្ម​ក្នុង​ជួរ "inline style" ​ដែល​បាន​ប្រើ

  • style="position: fixed; /*មាន​ទីតាំង​នៅ​នឹងថ្កល់​មួយ​កន្លែង​ បើ​ទោះ​ជា​ប្រើ​របារ​រមូរ​ចុះឡើង*/
  • right: 0; /*ស្ថិត​នៅ​ខាង​ស្ដាំ​មាន​គម្លាត​សូន្យ​ពី​របារ​រមូរ​ខាង​ស្ដាំ*/
  • top: 45%; /*គម្លាត​ពី​ផ្នែក​ខាង​លើ​នៃ​កម្មវិធី​រុក​រក​គឺ ៤៥%*/
  • visibility: visible; /*អាច​មើល​ឃើញ*/

Last Updated on Wednesday, 13 October 2010 23:05

 

Comments  

 
0 # Sovann Heng 2010-10-14 09:05
Please also read Khmer Language Flag in​ JoomFish
How to add/change Khmer language flag for JoomFish
Reply | Reply with quote | Quote
 
 
0 # Peter G 2011-02-18 10:49
Hi ;

I followed the instructions at http://km-kh.com/tutorial/joomla/38-joomfish/56-khmer-flag-in-joomfish. I can see the exact same results as shown in that page. but the flags STILL NOT SHOW on frontpage, frontpage just shows a TEXT link, not the flag. What am I doing wrong??

BR
Peter G.
Thailand
Reply | Reply with quote | Quote
 
 
0 # Sovann Heng 2011-02-18 20:29
Quoting Peter G:
Hi ;
I followed the instructions at http://km-kh.com/tutorial/joomla/38-joomfish/56-khmer-flag-in-joomfish. I can see the exact same results as shown in that page. but the flags STILL NOT SHOW on frontpage, frontpage just shows a TEXT link, not the flag. What am I doing wrong??

BR
Peter G.
Thailand

Please try to upload the km.gif into {yourjoomlarootfoler}/components/com_joomfish/images/flags At Joomla back-end :: Components :: Joom!Fish :: Languages :: Image filename for Khmer (Cambodia) [leave this blank, not km.gif]
More details please read: Khmer Translation for Joom!Fish on Joomla.org Khmer Forum
NOte: If you are a club member of Joomfish, you are able to access JoomFish2.2.0.zip where Cambodia Flag included.
I hope this could give you some help
Reply | Reply with quote | Quote
 
 
0 # Peter G 2011-02-18 23:48
Hi Guys ;

Thanks for responses and trying to help. No, I found that flag file kh.gif will not work, and it had me spinning for hours. The CRITICAL piece of information here is to FTP the flag image file km.gif, (and NOT kh.gif) to the flags directory components/com_joomfish/images/flags. After that, the flag will show on the front page the same as all other flags for installed languages.

BR
Peter G.
Thailand
Reply | Reply with quote | Quote
 
 
0 # Sourng 2012-02-16 09:46
ជំរាប​សួរ​បង​
ខ្ញុំ​មាន​បញ្ហា​ដាក់​ភាសារ​នៅ​លើ​Joomla 1.7 ។​វា​មិន​បង្ហា​ភា​សារ​ដែល​ត្រូវ​ជ្រើ​ស​រើ​ស​ ទោះ​បី​ខ្ញុំ​ចូល​ទៅ​កំនត់​ ម៉ូ​ឌុល​ វា​ក​ដោយ​។ ​ហើយ​ចំពោះ​Joomla 1.6 វា​អត់​បង្ហាញ​ទង់​ជាតិ​ទេ​​ វា​បង្ហាញ​ជា​អក្ស​រ​វិញ​។​ សូម​បង​ជួយ​បង្ហាញ​ផង​ អរ​គុណ​
Reply | Reply with quote | Quote
 

Add comment


Security code
Refresh