Question: I have problem with translating my application with gettext.

My code is:

```
<?php
$language = 'cs_CZ';
$translatefile = 'default';
setlocale(LC_ALL, $language);
putenv("LANG=".$language);
bindtextdomain($translatefile, __DIR__.'/locale');
textdomain($translatefile);

echo gettext("ADMIN_LOGIN_PROFESSIONAL");

```

When I run the script it still shows 'ADMIN\_LOGIN\_PROFESSIONAL'.

My file structure:

* root/
	+ index.php
	+ locale/
		- cs\_CZ/
			* LC\_MESSAGES/
				+ default.mo

I'm running Windows 7, Apache 2.2.22 and PHP 5.3.13.

Thank you very much for any help ...

Answer: 
If I understand what you mean correctly, then the Kronecker product (`kron`) is the simplest way to achieve this: 

```
A = kron( ones(101), [3 1; 1 2]);
A = A(1:201, 1:201); 

```

The first command creates a 202x202 matrix according to your requirements, and the second command chops 1 row and 1 column off to conform to the 201x201 size specification.
Use [repmat](http://www.mathworks.nl/help/techdoc/ref/repmat.html) and matrix concatenating:

```
rowodd =[repmat([3 1],1,100) 3];
roweven=[repmat([1 2],1,100) 1];

mat = [repmat([rowodd;roweven],100,1) ; rowodd];

```