Saturday, November 24, 2018

Sitecore Dictionaries

Hi All, In this post we will see about the use of dictionaries in Sitecore

Here you go,
  • When you are working in Multi language sites,you must know about the sitecore dictionaries.Because when you translate your site, some information cannot be translated(ex.static texts,Button text etc).To overcome this sitecore introduced a dictionaries.
  • Sitecore dictionaries are useful when you want to translate hard-coded texts(ex:button text)

You can find dictionary in the path

                         /Sitecore/System/Dictionary

Dictionary entry helps

                        1.Translating static content
                        2.Translating field names
                        3.Adding help text.


Dictionary Domain

  • Used for fallback mechanism(if certain key is not found then sitecore searches key in the fall back domain).
  • It’s defined in the site configuration.
  • Entries cannot be used for client translation.





Steps to add Dictionary entry

Step 1: Navigate System/Dictionary ,Right Click Add new dictionary Entry
             Note that the entry includes two fields
                          Key     - Unique key
                          Phrase- Value that replaces after translation.



Note :Do not use the keyname same as template field names. Because sitecore will automatically use the dictionary item to translate the fieldnames. Please refer below image the field name Home replaced by it’s key value raj.


Please refer above image the Home FieldName gets replaced.

Step 2: Refer your key in your page .
            Sitecore dictionaries available in the namespace: Sitecore.Globalization

                To refer a dictionary entry:

 @Sitecore.Globalization.Translate.Text("Home")



All now set.publish and value will be replaced after translation.

Translate By domain

                    Suppose if you have two different domains, sitecore also provides a facility to translate a text by domain.

Step 1: Add a new domain under system Dictionaries, based on the template(Sitecore/templates/System/Dictionary/Dictionary Domain)



Step 2: It’s simple, just change the API.

@Sitecore.Globalization.Translate.TextByDomain("mydomain","Home")




8 comments:

  1. mp4 converter Evano MP4 Converter - Free converter MP4 file to another format such as video files: AVI WMV MOV MKV WEBM and audio files: MP3 WAV FLAC OGG..

    ReplyDelete
  2. Offering Cheap windows VPS with license windows server 2016/2019 OS. Buy RDP with full admin access
    Cheap Windows VPS

    ReplyDelete
  3. Porno
    Suchst du deutsche Pornos zum Gratis Download, die dein neues Wichserlebnis wahrmachen? Dann bist du bei Pornos.cc genau richtig gelandet. Wichser mit Niveau schauen sich die besten Pornoclips aus Deutschland gratis an. Warum möchtest du für deine eigene Lust Geld zahlen, wenn du auch die besten Pornos zum Download angeboten bekommst?

    ReplyDelete
  4. sexdates

    Heiße Österreicherinnen und erotische Kontakte in ganz Austria finden sich mit Hilfe einer tabulosen Community ganz einfach. Auch in deiner Stadt suchen heiße Singles und tabulose Menschen spannende Kontakte, die nicht abgeneigt sind einen OneNight Stand zu erleben. Für ein erotisches Abenteuer muss man nicht in Wien wohnen. Bei der Dating Börse findest du schnell dank des PLZ Filters heiße Singles und hemmungslose Menschen aus deinem Umfeld. Aber auch nach sexuellen Neigungen und Vorfreuden kannst du dir dein Sextreffen organisieren und planen. Immerhin geht es bei uns nicht nur um die große Liebe. Machen wir uns nichts vor, viele heiße Singles sind glücklich und einfach nur auf der Suche nach einem erotischen Abend. Ein Treffen zum Ficken und Spaß haben! Selbstverständlich kannst du dich auch auf dich selbst verlassen und dich einzeln durch die Vielzahl der Profile klicken. Die meisten User haben ein Profilbild. Oftmals mehr als heiß und erotisch, als bieder und verdeckt. Da fängt der Abend schon mit einem live Porno an, den du mit der Webcam gerne auf deine ganz eignen Bedürfnisse abstimmst. Wir stellen dir die Technik, was du daraus machst ist deine Sache. Nutze zum Beispiel die Funktion der Videobotschaft

    ReplyDelete
  5. Sitecore Sources: Sitecore Dictionaries >>>>> Download Now

    >>>>> Download Full

    Sitecore Sources: Sitecore Dictionaries >>>>> Download LINK

    >>>>> Download Now

    Sitecore Sources: Sitecore Dictionaries >>>>> Download Full

    >>>>> Download LINK cL

    ReplyDelete
  6. TAKTIK88 Kini, dunia bet telah berubah drastis. Siapa yang perlu pergi ke Las Vegas, jika hanya dengan berada di rumah, Anda sudah bisa merasakan serunya bermain judi? Dengan memiliki akun di TAKTIK88, Anda mendapatkan akses ke situs bet slot online terlengkap di Indonesia dengan sekali klik. Tak perlu repot-repot, kemudahan akses yang diberikan benar-benar memudahkan; tanpa membutuhkan VPN pun Anda bisa langsung bermain. Bagi Anda, peminat bet slot online gacor, kini dapat merasakan pengalaman optimal bermain di situs gacor taktik88 tanpa hambatan. Apalagi, dengan perkembangan teknologi yang semakin canggih, Anda bisa memainkannya melalui berbagai perangkat, mulai dari smartphone, PC, hingga tablet, asalkan Anda memiliki koneksi internet berkualitas. Sangat praktis, bukan?

    ReplyDelete

Check the users Logged into the sitecore backend

Hi, Today I'm going to discuss about " how to check the concurrent users logged into the sitecore backend ? ". For this ...