Forum Discussion

dustin's avatar
dustin
Expert
9 years ago

How do I differentiate a text string by category/board?

In our knowledgebase area, we would like the "New Message" button to display "New Article".  The text key for this is... menubar.button.new_message    However, when this is changed, it also affect...
  • dustin's avatar
    dustin
    9 years ago

    As Vishwajeet mentioned, the following does work...

     

     

    menubar.button.new_message  = New ${general.Message}

     

     

    However, if you do a search for the the text key general.Message, you'll see how the magic happens.  Using the @place extension you can specify strings based on location.

     

     

    menubar.button.new_message                        = New Post                         
    menubar.button.new_message@place:tkb       = Create New Document   

     

     

    Other location values include...

     

    @place:tkb     
    @place:board
    @place:blog   
    @place:idea     
    @place:qanda  //question
    @place:support
    @place:contest

     

    Note you can also use the @message extension for specific types of messages and string them with the @place extension

    Examples...

     

    general.Message@place:blog@message:root     = ${general.Message}
    general.Message@place:blog@message:reply    = ${general.Comment}