Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

python - django-admin.py makemessages issues (1) Duplicated message (2) .pot not .po? -


hi i'm working on localization of website frontend, , met 2 issues django-admin.py makemessages -l zh_cn.

1) it's generating .pot files instead of .po files? why that? how change this?

2) when i'm editing translation got kind of error message "duplicate message definition". makes sense because have same string in different html pages, example, "login", it's duplicated. i'm not sure how avoid these duplicated messages? there no other ways remove duplicated ones 1 one manually? (i can't delete strings in poedit)

what i've done renamed .pot file .po, , manually deleted duplicated strings, don't think it's proper way do? plus in future if need make changes, if "django-admin.py makemessages -l zh_cn" again, .pot file show again , i'll have manually change on again, , translation i've done .po file no longer there... how avoid this??

many in advance time , patience!!

all solved. it's because there errors when did "makemessage", e.g.

syntaxerror: translation blocks must not include other block tags: url alerts_main (file: ./templates/default/alerts/base.html) 

i've fixed errors 1 one it'll completed generating .po file without duplicated message.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -