Change text in masterpage based on the language selected - sharepoint-2010

In my master page along with the search box I have label "Search". Now it is hard coded and
is working fine. But when I change language the text should change to "Rechercher". This should happen in master-page, how can I achieve this. There few mote other texts which also needs to be changed based on the language change.
Thanks in advance for the help

I would recommend using an EncodedLiteral control with an out of the box Resource string. If your master page was based on an out of the box master page like v4.master, you should be able to see many examples of this control in use.
To include a language aware label for search, I might use the following:
<SharePoint:EncodedLiteral runat="server"
text="<%$Resources:wss,mobile_navigation_search_text%>"
EncodeMethod="HtmlEncode"/>

Related

Manually changing Google Custom Search's search box and button

I want to make my own custom search box and button for GCSv2.
Here is my code:
(pastebin because I am too lazy to make my code look right)
http://pastebin.com/p4yThTma
And the code I want the search box and button to be linked too,
http://pastebin.com/SK1Df7rs
i was trying to find a way to do it as well but i couldn't
on google webpage there isn't enough information about modifying the GCSE
https://developers.google.com/custom-search/docs/element
i would like if someone already customize it to share it with us

Link Content Control to Legacy Form Field in MSFT Word (VBA)

I'm sure this question has an easy answer, but I have a short timeline and need to get it resolved ASAP.
I'd like to have a content control drop down that when the user makes a selection, will update a legacy text box formField with the selected value.
I have no trouble selecting form fields and setting them using VBA code:
ActiveDocument.FormFields("MyFieldName").Result
But I'm having trouble selecting the value from the content control, and also figuring out how to execute the macro "onExit" like I can with legacy fields / drop downs.
Any suggestions?
Google "vba content control events".
For example, see the last post by Greg Maxey at how-to-catch-custom-control-events-with-vba-macro and towards the bottom of his page http://gregmaxey.mvps.org/word_tip_pages/content_controls.html

Multi-select from dropdown on custom field on User Story

Currently I have a custom field on User Stories and Defects for our developer to tag what system was affected with their code change. Currently I only see a drop down, which is a single selection. Is there any way to give them the chance to multi-select options in the drop down? Or is there another object that would work better? Thanks in advance for all the great help I always get on here :-)
Your best bet to emulate a multi-select custom field is to use Tags. If you are managing these stories and defects with a custom App you could restrict which Tags you show or allow them to choose from in that App.
As Charles indicated, you probably want to try to use the MultiObjectPicker or the TagPicker, that extends it. If you want to stick with the ComboBox, then you can enable multi-selection by setting the "multiSelect" config field to "true".

ReportViewer: two text colors, one cell

Is it possible to have 2 areas of text in one cell such that each can have a different color? You can do this in crystal reports but I cannot see a way to do this in ReportViewer. What it is doing is essentially highlighting an important text fragment if it appears in a cell description to draw the users attention. I am fairly new to reportviewer so it for now I am assuming it's my lack of knowledge that is making this difficult. I am using VS2010.
Thanks.
Turns out VicarlnATutu wasn't quite right.
You can do this, but only if you are using VS2010 (which I am) because it includes the new SSRS rendering engine for SQL-Server 2008. This allows you to put some basic HTML into a field and have multiple formats in one cell. For more info see below:
http://msdn.microsoft.com/en-us/library/cc645967.aspx
http://msdn.microsoft.com/en-us/library/cc627491.aspx
One thing that tripped me up is what they call a 'placeholder' in the MS documentation is the little bit of text inside the textbox control that shows up by default. You can select two different things on the control in VS2010. One is the textbox itself. Right clicking on the textbox gives you 'text box properties'. The other thing you can select is the default text INSIDE the textbox. Right clicking on this 'placeholder' text gives you a different context menu where you can select 'placeholder properties'. This is where you can change the cell to accept HTML.
No, unfortunately not. I don't know if there are custom controls out there for ReportViewer, but the built-in TextBox only supports setting color (be it Foreground or Background) for the entire thing.
ah, good to know. kind of a unintuitive way to tell a TextBox to display HTML, but nice to know that you can!

How do I check programmatically if any document properties of a MS Word 2007 document has changed?

For example, I want the Title fields in the body and the page headers of the document to be updated automatically whenever the Title field in the document properties panel is changed. I know how to update the fields, but I want to know the name of the event that will tell me when the document properties have changed.
Your help will be appreciated. Thanks.
I also asked it on the MSDN Forums.
You can certainly check for these kinds of things in some of the events, such as DocumentBeforeClose or WindowSelectionChange, but this may be overkill. Instead, you could just use fields - they will update automatically. For example, go to Insert and then click on Quick Parts and then Field... Go to the Document Information section in the dropdown on the left and choose Title. Then, insert that and go back to the Home tab on the Ribbon and set its style to Title.
You also mention you also want page headers - are those properties you're setting in the Document Panel?
Word doesn't have any events like that. The best you might be able to do is use the selection change event, which will happen fairly often, but then you have to check all the propertiers of all the documents.
I think you're trying to do something that Word doesn't normally do. There are certain times when fields are updated and that's it. Teach you users how it works.