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.
You can also create the matrix by using `meshgrid` and a mathematical function that gives you the desired result matrix:

```
[X, Y] = meshgrid(1:201, 1:201);
Matrix = 2*mod(X,2) - 2*mod(Y+1,2) + 3*(mod(X+1,2).*mod(Y+1,2)) + 1;

```