Aloha เป็นเครื่องมือที่ช่วยให้คุณมี Aloha แม่แท็กที่ช่วยให้คุณ
ที่จะทำให้ "สวัสดี" ในภาษาที่แตกต่างกัน & nbsp;. มันเป็นแรงบันดาลใจ Flickr และคุณจะยินดีที่จะมีส่วนร่วมในการแปลมากขึ้น
การติดตั้งวาง `ไดเรกทอรี aloha` ที่ไหนสักแห่งบนเส้นทางหลามของคุณแล้วเพิ่ม` aloha` จะ `` INSTALLED_APPS` ในไฟล์ settings.py` ของคุณ
{% Aloha%}
แท็ก Aloha สร้างอวยพรสุ่มทำให้มันและการปรับปรุงบริบทที่มีตัวแปรเพิ่มเติมที่มีรายละเอียดเพิ่มเติมของภาษาอวยพร
& nbsp;
ไวยากรณ์:
& nbsp; & nbsp; & nbsp; & nbsp; {% โหลด Aloha%}
& nbsp; & nbsp; & nbsp; & nbsp; {% Aloha%}
& nbsp; & nbsp; & nbsp; & nbsp; {% ภาษา Aloha เป็น [varname] และข้อมูลที่เป็น [varname]%}
& nbsp;
การใช้งานตัวอย่าง:
& nbsp;
& nbsp; & nbsp; & nbsp; & nbsp; {% ภาษา Aloha เป็น aloha_lang และข้อมูลเป็น% aloha_info}
การใช้งานตัวอย่าง:
& nbsp; & nbsp; & nbsp;
& nbsp; & nbsp; & nbsp; & nbsp;
{% Aloha%}!
& nbsp; & nbsp; & nbsp; & nbsp; {% ifnotequal aloha_language "ภาษาอังกฤษ"%}
& nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp;
{{aloha_info}}
& nbsp; & nbsp; & nbsp; & nbsp; {% endifnotequal%}
ต้องการ
- หลาม
- Django
ความคิดเห็นที่ไม่พบ