It depends, and you'll have to check with the California state bar to find out.
California does allow LL.B holders from the UK to sit for the California bar, but there are some additional requirements. I think you have to be admitted in the UK and have a certain number of years of experience, for example.
An LL.B holder from another country, however, like India or Pakistan might not qualify without first obtaining a U.S. LL.M. I'm not sure what you mean by "two year LL.B". If you mean that the degree was only a two year program, I doubt if California would accept it without and LL.M. Again, check with the California bar, as they can give you the best information.