Question: I want to click on a link on site1 that leads to site2 and if the link has been clicked the hidden text (here: text\_1\_toggle) on that page should be visible.

P.S. I'm pretty new to this topic..so forgive me if i don't understand your answers right away :)

site1:

```
<html>
<head>
</head>
<body>

  <a href="site2.htm#text_1_toggle">Click me!</a>

</body>
</html>

```

site2:

```
<html>
<head>
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
  <script src="toggle.js"></script>
  <style>
        h4:hover
        {
            cursor: pointer; 
            cursor: hand;
        }
        #text_1_toggle
        {
            display: none;
        }
    </style>
</head>
<body> 
  <div id="site">
      <h4 id="text_1">Text 1</h4>
      <span id="text_1_toggle">     
      1 some text...
      </span>

    <h4 id="text_2">Text 2</h4>
      <span id="text_2_toggle">     
      2 some text...
      </span>   
  </div>
</body>

```

toggle.js

```
jQuery("#site").ready(function()
{
  jQuery("#text_1").click(function()
  {
    jQuery("#text_1_toggle").toggle();
  });    

  jQuery("#text_2").click(function()
  {
    jQuery("#text_2_toggle").toggle();
  });
}); 

```

Answer: 
I've met the same problem just now. Then I walked around and figured it out. Although this question was posted 2 years ago, I think my solution might be helpful.

We can create strings for `true` and `false` for different languages in resource files:

For English:

```
<string name="boolean_true">true</string>
<string name="boolean_false">false</string>

```

For Chinese:

```
<string name="boolean_true">是</string>
<string name="boolean_false">否</string>

```

Then we can translate `boolean` values into whatever languages we want:

```
boolean isActive = false;
String  strIsActive = isActive
                      ? getString(R.string.boolean_true)
                      : getString(R.string.boolean_false);

```
im in the android class also.. i think the print formater for boolean is "%B"
its with a capital "B" not a lower case "b". See u on slack..

```
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
    <string name="whip">whip?<xliff:g id="whip">%B</xliff:g></string>
</resources>

private String createOrderSummary(int price) {
    String mess = "Name: "+ getName() +"\n";
    mess += getString(R.string.add_whipped_cream, whip);///whip IS A BOOL VAL.
    return  mess;
}

```