PmWikiVi / Tp tin cu h́nh Vit hóa

There are still lots of errors in the sample file below, I will try to point them out, highlighting text which needs translating. Please remove the highlight style tag (%TT%...%%) afterwards. ~Hans

Bên di có mt tp tin mu chuyn i phn mm PmWiki sang Vit ng.
Hăy bao gm nó ti kt thc ca tp tin «local/config.php».

Bn hăy nh ngha giá tr ă mun, ri loi du thng «#» hot hóa lnh y.

Tp tin này cha mt s bin và d liu không th c lp mt cách trc tip trong XLPage

Ly thí d, bn có th xem tp tin ting Pháp:

     a.urllink, a.wikilink, a.createlink, a.createlinktext, a.selflink
       { text-decoration:none; border-bottom:none; }\n";
  1. ---------------a phng hóa -----------------------------------
 XLPage('vi','PmWikiVi.XLPage');
 XLPage('vi,'PmWikiVi.XLPageCookbook'); should point to right page

 ##--Chui và trang ---------------------------

 $DefaultGroup = 'WikiToi'; only one term allowed, this is PHP, not a link markup. 
   What does WikiToi mean? the default group in pmwiki is called 'Main'
 $DefaultName = 'TrangChinh'; and I assume PHP needs the ISO letters not uft-8
 $TimeFmt = "%d/%m/H:%M";
 $AuthorGroup='NhomToi'; # Tên nhóm tác gi y, mc nh là «Profiles» (tiu s s lc)
 $AuthorRequiredFmt = 'Hăy nhp h tên bn';

 ##-- Qun lư trang ------------------

 $DefaultPageTextFmt = 'Không có trang $Name';
 $PageNotFound = 'PmWikiVi.KhôngT́mTrang'; KhongTimTrang ? 
           this gives the page name for PageNotFound
 ## Biu thc c dùng  ng ư là trang này s b xóa b
 $DeleteKeyPattern = "^\\s*xóa b\\s*$";
 $PageRedirectFmt = '<p><i>c chuyn hng t $FullName</p>';

 ## Li nh ngha ca các trang hin th thay i cui cùng (Các thay i gn ây)
 $RecentChangesFmt = array(
  '$DefaultGroup.CacThaydoiGanDay' => 
    '* $Group.$Name?  . . . $CurrentTime by $AuthorLink',
  '$Group.ThaydoiGanDay' =>
    '* $Name?  . . . $CurrentTime bi $AuthorLink'); 

 ## Li nh ngha ca ln ti lên gn ây ... 
 $RecentUploads = array(  # ... later incomplete source text

 ## Kiu dng a phng c nh ngha trc
 only one wod as the keyword. Not sure if it needs to be ISO-Latin
you use it like %Vang%this text is yellow%% $WikiStyle['Den']['color'] = 'black'; $WikiStyle['Trang']['color'] = 'white'; etc. below $WikiStyle['D|']['color'] = 'red'; $WikiStyle['XanhLaCay|Xanh lá cây']['color'] = 'green'; $WikiStyle['XanhNuocBien|Xanh nc bin']['color'] = 'blue'; $WikiStyle['Vang|Vàng']['color'] = 'yellow'; $WikiStyle[Xam|Xám']['color'] = 'gray'; $WikiStyle['Bac|Bc']['color'] = 'silver'; $WikiStyle['HtD']['color'] = 'maroon'; $WikiStyle['Tim|Tím']['color'] = 'purple'; $WikiStyle['XanhHaiQuân|Xanh hi quan']['color'] = navy blue'; ##--Các nhóm và trang cn loi tr ra vic t́m kim ---------------- this is a most difficult paragraph, sinc eit deals with regular expressions, not just PHP code $SearchPatterns['default'][] = '!\\.TimKiemTrongWiki$!'; $SearchPatterns['default'][] = '!\\.Lc(All)?Recent(Changes|Uploads)$!'; $SearchPatterns['default'][] = '!\\.TrangChinh$!'; $SearchPatterns['default'][] = '!\\.SideBar$!'; $SearchPatterns['allgroups'] = $SearchPatterns['default']; a Vietnames keyword(s) for "all groups", but no spaces! $SearchPatterns['default'][] = '!^AWikiGroup\\.!'; this is a placeholder, "a wiki group", meaning "any wiki group" which you would like to have excluded from searches can be named here. no spaces in between words. # v.v. $SearchPatterns['default'][] = '!^PmWiki\\.!'; # loi tr nhóm PmWiki ## Có th loi tr nhóm PmWiki nu bn dch gn hoàn thành. ##Có ngha là bn có th truy cp nhng trang y, ##nhng mà ngi dùng s không xem chúng ##trong vic t́m kim mc nh, hoc trong danh sách các trang. ## cho phép t́m kim trong nhóm này, trong li thí d trên, ##ă to mng «allgroups» (mi nhóm), ## cho phép t́m kim mt cách rng hn nh: ## (:pagelist group=PmWiki list=allgroups:) markup code not for translation ## hoc thêm vào mt vic t́m kim 'list=allgroups' ##(danh sách=mi nhóm) t́m kim trong mi iu. ##-- Mô-un ------------------------------------------------------ ##- Nu ă ti mô-un PageRefCount -- # $PageRefCountFmt = "<h1>Cross references</h1><p>"; # Tên trang translate with ISO ? # $RefCountTimeFmt = "<small>b-H:%M</small>"; # Khuôn dng ngày # Ch có th sa i nhng chui khác trong mă ca mô-un «refcount». # Bn có th s dng mt bn sao ca refcont trong th mc a phng. ## Chui cho th thông báo, ch do qun tr s dng, không phi nghiêm trng... $MailPostsMessage = "Các sa i ca bn gn ây trong Wiki này:\n ($ScriptUrl/$DefaultGroup/CacThayDoiGanDay)\n\n\$MailPostsList\n"; $MailPostsSubject = "$WikiTitle : Wiki bn ă thay i cách này"; #$MailPostsTimeFmt = $TimeFmt; $MailPostsItemFmt = ' * $FullName . . . $PostTime bi $Author'; ##- Nu ă ti tp lnh «urlapprove» (tán thành a ch Mng) -- $ApprovedUrlPagesFmt = array('$DefaultGroup.DiaChiMangDuocTanThanh'); ##-- Liên quan n tài liu------------------------------------------- ## Ti ây nh ngha nhng trang cha mô t ca nhng bin. ## Nên có nhng trang này bng ngôn ng bn #$VarPagesFmt = array( # 'PmWikiVi.Variables', replace with page names # 'PmWikiVi.BasicVariables', # 'PmWikiVi.LayoutVariables', # 'PmWikiVi.LinksVariables', # 'PmWikiVi.EditVariables', # 'PmWikiVi.UploadVariables', # 'PmWikiVi.AutresVariables', # 'PmWikiVi.MailPosts' );